diff --git a/docs/packstack.rst b/docs/packstack.rst index 4fa7d6fbb..61d1e789e 100644 --- a/docs/packstack.rst +++ b/docs/packstack.rst @@ -1028,6 +1028,9 @@ Ceilometer Config parameters **CONFIG_CEILOMETER_COORDINATION_BACKEND** Backend driver for Telemetry's group membership coordination. ['redis', 'none'] +**CONFIG_CEILOMETER_SERVICE_NAME** + Ceilometer service name. ['httpd', 'ceilometer'] + MONGODB Config parameters ------------------------- diff --git a/packstack/plugins/ceilometer_800.py b/packstack/plugins/ceilometer_800.py index c8cedeaa9..b2fe2a248 100644 --- a/packstack/plugins/ceilometer_800.py +++ b/packstack/plugins/ceilometer_800.py @@ -65,6 +65,18 @@ def initConfig(controller): "NEED_CONFIRM": True, "CONDITION": False}, + {"CMD_OPTION": "ceilometer-service-name", + "PROMPT": "Enter the Ceilometer service name.", + "OPTION_LIST": ['ceilometer', 'httpd'], + "VALIDATORS": [validators.validate_options], + "DEFAULT_VALUE": "httpd", + "MASK_INPUT": False, + "LOOSE_VALIDATION": False, + "CONF_NAME": 'CONFIG_CEILOMETER_SERVICE_NAME', + "USE_DEFAULT": False, + "NEED_CONFIRM": False, + "CONDITION": False}, + {"CONF_NAME": "CONFIG_CEILOMETER_COORDINATION_BACKEND", "CMD_OPTION": "ceilometer-coordination-backend", "PROMPT": "Enter the coordination driver", diff --git a/packstack/puppet/templates/ceilometer.pp b/packstack/puppet/templates/ceilometer.pp index 4dad64a8d..97ae10ab7 100644 --- a/packstack/puppet/templates/ceilometer.pp +++ b/packstack/puppet/templates/ceilometer.pp @@ -28,6 +28,13 @@ if $config_ceilometer_coordination_backend == 'redis' { $coordination_url = '' } +if hiera('CONFIG_CEILOMETER_SERVICE_NAME') == 'ceilometer' { + $ceilometer_service_name = 'openstack-ceilometer-api' +} else { + $ceilometer_service_name = 'httpd' +} + + class { '::ceilometer::db': database_connection => "mongodb://${config_mongodb_host}:27017/ceilometer", } @@ -56,5 +63,22 @@ class { '::ceilometer::api': keystone_auth_uri => hiera('CONFIG_KEYSTONE_PUBLIC_URL'), keystone_identity_uri => hiera('CONFIG_KEYSTONE_ADMIN_URL'), keystone_password => hiera('CONFIG_CEILOMETER_KS_PW'), - api_workers => $service_workers + api_workers => $service_workers, + service_name => $ceilometer_service_name, +} + +if $ceilometer_service_name == 'httpd' { + + class { '::apache': + purge_configs => false, + } + + class { '::ceilometer::wsgi::apache': + ssl => false, + } + + if hiera('CONFIG_KEYSTONE_SERVICE_NAME') == 'httpd' { + apache::listen { '5000': } + apache::listen { '35357': } + } } diff --git a/packstack/puppet/templates/horizon.pp b/packstack/puppet/templates/horizon.pp index cbba29853..496fc091d 100644 --- a/packstack/puppet/templates/horizon.pp +++ b/packstack/puppet/templates/horizon.pp @@ -61,6 +61,10 @@ if hiera('CONFIG_KEYSTONE_SERVICE_NAME') == 'httpd' { apache::listen { '35357': } } +if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' { + apache::listen { '8777': } +} + if hiera('CONFIG_AODH_INSTALL') == 'y' { apache::listen { '8042': } } diff --git a/packstack/puppet/templates/nagios_server.pp b/packstack/puppet/templates/nagios_server.pp index b8c993dc5..2d66d5f63 100644 --- a/packstack/puppet/templates/nagios_server.pp +++ b/packstack/puppet/templates/nagios_server.pp @@ -104,6 +104,10 @@ if hiera('CONFIG_KEYSTONE_SERVICE_NAME') == 'httpd' { apache::listen { '35357': } } +if hiera('CONFIG_CEILOMETER_INSTALL') == 'y' { + apache::listen { '8777': } +} + if hiera('CONFIG_AODH_INSTALL') == 'y' { apache::listen { '8042': } }