Module: Jellyfish::ManageIQ

Defined in:
lib/jellyfish/manageiq.rb,
lib/jellyfish/manageiq/engine.rb,
lib/jellyfish/manageiq/storage.rb,
lib/jellyfish/manageiq/version.rb,
lib/jellyfish/manageiq/big_data.rb,
lib/jellyfish/manageiq/databases.rb,
lib/jellyfish/manageiq/provisioner.rb,
lib/jellyfish/manageiq/infrastructure.rb

Defined Under Namespace

Classes: BigData, Databases, Engine, Infrastructure, Provisioner, Storage

Constant Summary collapse

VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.aws_settingsObject



27
28
29
30
31
32
# File 'lib/jellyfish/manageiq.rb', line 27

def self.aws_settings
  {
    aws_access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID'),
    aws_secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY')
  }
end

.miq_settingsObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/jellyfish/manageiq.rb', line 11

def self.miq_settings
  # Note for miq_ssl below:
  # On OS/X, for development only, it may be easiest just to disable certificate verification because the
  # certificates are stored in the keychain, not the file system.
  # https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
  {
    miq_url: ENV.fetch('MIQ_URL'),
    miq_username: ENV.fetch('MIQ_USERNAME'),
    miq_password: ENV.fetch('MIQ_PASSWORD'),
    miq_user_email: ENV.fetch('MIQ_USER_EMAIL', 'miq@' + ::URI.parse(ENV.fetch('MIQ_URL')).host),
    miq_user_token: ENV.fetch('MIQ_USER_TOKEN', 'jellyfish-token'),
    miq_referer: ENV.fetch('MIQ_REFERER', ENV.fetch('DEFAULT_URL') + '/api/v1/manageiq/order_item/update_provision'),
    miq_ssl: (::Rails.env.development? && ::OpenSSL::SSL::VERIFY_NONE) || ENV.fetch('MIQ_SSL', ::OpenSSL::SSL::VERIFY_PEER)
  }
end