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_settings ⇒ Object
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_settings ⇒ Object
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
{
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
|