
* Deploy Gnocchi services * Create default archive policy and archive policy rule * Configure Aodh with Gnocchi which is used to evaluate the alarms for threshold Note: Tempest does not fully support Gnocchi yet. * test_alarming_api will work (Aodh) with Gnocchi * test_telemetry_notification_api will not work (Ceilometer) with Gnocchi. That's why we don't configure Ceilometer to use Gnocchi dispatcher. Depends-On: I4ed26d3e294e82c383afc443914b0d7bb1906e46 Depends-On: Ib818b5ae4fa301c6c496fe800ae45c9b0a73222c Change-Id: I32e5f80e4eb8a5cd8fc07798aaf6d710332fcdda
60 lines
1.7 KiB
Puppet
60 lines
1.7 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'],
|
|
}
|
|
|
|
# gnocchi is not packaged in Ubuntu Cloud Archive
|
|
# https://bugs.launchpad.net/cloud-archive/+bug/1535740
|
|
if $::osfamily == 'RedHat' {
|
|
$gnocchi_url = 'http://127.0.0.1:8041'
|
|
} else {
|
|
$gnocchi_url = undef
|
|
}
|
|
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',
|
|
gnocchi_url => $gnocchi_url,
|
|
}
|
|
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': }
|
|
|
|
}
|