class openstack_integration::ceilometer { include ::openstack_integration::config include ::openstack_integration::params rabbitmq_user { 'ceilometer': admin => true, password => 'an_even_bigger_secret', provider => 'rabbitmqctl', require => Class['::rabbitmq'], } rabbitmq_user_permissions { 'ceilometer@/': configure_permission => '.*', write_permission => '.*', read_permission => '.*', provider => 'rabbitmqctl', require => Class['::rabbitmq'], } if $::openstack_integration::config::ssl { openstack_integration::ssl_key { 'ceilometer': notify => Service['httpd'], require => Package['ceilometer-common'], } Exec['update-ca-certificates'] ~> Service['httpd'] } class { '::ceilometer': telemetry_secret => 'secrete', default_transport_url => os_transport_url({ 'transport' => 'rabbit', 'host' => $::openstack_integration::config::host, 'port' => $::openstack_integration::config::rabbit_port, 'username' => 'ceilometer', 'password' => 'an_even_bigger_secret', }), rabbit_use_ssl => $::openstack_integration::config::ssl, memcached_servers => $::openstack_integration::config::memcached_servers, debug => true, } class { '::ceilometer::db::mysql': password => 'ceilometer', } class { '::ceilometer::db': database_connection => 'mysql+pymysql://ceilometer:ceilometer@127.0.0.1/ceilometer?charset=utf8', } class { '::ceilometer::keystone::auth': public_url => "${::openstack_integration::config::base_url}:8777", internal_url => "${::openstack_integration::config::base_url}:8777", admin_url => "${::openstack_integration::config::base_url}:8777", password => 'a_big_secret', } class { '::ceilometer::keystone::authtoken': password => 'a_big_secret', user_domain_name => 'Default', project_domain_name => 'Default', auth_url => $::openstack_integration::config::keystone_admin_uri, auth_uri => $::openstack_integration::config::keystone_auth_uri, memcached_servers => $::openstack_integration::config::memcached_servers, } class { '::ceilometer::api': enabled => true, service_name => 'httpd', } include ::apache class { '::ceilometer::wsgi::apache': bind_host => $::openstack_integration::config::ip_for_url, ssl => $::openstack_integration::config::ssl, ssl_key => "/etc/keystone/ssl/private/${::fqdn}.pem", ssl_cert => $::openstack_integration::params::cert_path, workers => '2', } # Panko is not yet packaged in ubuntu repos if $::osfamily == 'RedHat' { $event_dispatcher = 'panko' } else { $event_dispatcher = undef } class { '::ceilometer::collector': collector_workers => '2', event_dispatcher => $event_dispatcher, } class { '::ceilometer::expirer': } class { '::ceilometer::agent::notification': notification_workers => '2', } class { '::ceilometer::agent::polling': } class { '::ceilometer::agent::auth': auth_password => 'a_big_secret', auth_url => $::openstack_integration::config::keystone_auth_uri, } }