
PyMySQL is the new database driver when running MySQL. This patch updates our manifests to run it, since our modules already support it. Change-Id: I758c5c3bc7295f57102098cbe0d2d0f3b0f2692e Depends-On: I7604cca9e2d7bf0b93c820adec5f937f72b64fa8
68 lines
1.9 KiB
Puppet
68 lines
1.9 KiB
Puppet
class openstack_integration::aodh {
|
|
|
|
rabbitmq_user { 'aodh':
|
|
admin => true,
|
|
password => 'an_even_bigger_secret',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
rabbitmq_user_permissions { 'aodh@/':
|
|
configure_permission => '.*',
|
|
write_permission => '.*',
|
|
read_permission => '.*',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
|
|
# Aodh is not yet packaged in UCA, but only in RDO.
|
|
case $::osfamily {
|
|
'Debian': {
|
|
class { '::ceilometer::alarm::evaluator': }
|
|
class { '::ceilometer::alarm::notifier': }
|
|
# for tempest
|
|
$aodh_enabled = false
|
|
}
|
|
'RedHat': {
|
|
class { '::aodh':
|
|
rabbit_userid => 'aodh',
|
|
rabbit_password => 'an_even_bigger_secret',
|
|
verbose => true,
|
|
debug => true,
|
|
rabbit_host => '127.0.0.1',
|
|
database_connection => 'mysql+pymysql://aodh:aodh@127.0.0.1/aodh?charset=utf8',
|
|
}
|
|
class { '::aodh::db::mysql':
|
|
password => 'aodh',
|
|
}
|
|
class { '::aodh::keystone::auth':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::api':
|
|
enabled => true,
|
|
keystone_password => 'a_big_secret',
|
|
keystone_identity_uri => 'http://127.0.0.1:35357/',
|
|
keystone_auth_uri => 'http://127.0.0.1:35357/',
|
|
service_name => 'httpd',
|
|
}
|
|
class { '::aodh::wsgi::apache':
|
|
ssl => false,
|
|
}
|
|
class { '::aodh::auth':
|
|
auth_url => 'http://127.0.0.1:5000/v2.0',
|
|
auth_password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::client': }
|
|
class { '::aodh::notifier': }
|
|
class { '::aodh::listener': }
|
|
class { '::aodh::evaluator': }
|
|
class { '::aodh::db::sync': }
|
|
# for tempest
|
|
$aodh_enabled = true
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily (${::osfamily})")
|
|
}
|
|
}
|
|
|
|
}
|