761e6bd63c594ca0d613dfe1e19ebb2779c06bed
[apex-tripleo-heat-templates.git] / puppet / services / ceilometer-base.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Ceilometer service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   CeilometerMeteringSecret:
22     description: Secret shared by the ceilometer services.
23     type: string
24     hidden: true
25   CeilometerPassword:
26     description: The password for the ceilometer service account.
27     type: string
28     hidden: true
29   CeilometerWorkers:
30     default: 0
31     description: Number of workers for Ceilometer service.
32     type: number
33   EventPipelinePublishers:
34     default: ['notifier://?topic=alarm.all']
35     description: A list of publishers to put in event_pipeline.yaml.
36     type: comma_delimited_list
37   Debug:
38     default: ''
39     description: Set to True to enable debugging on all services.
40     type: string
41   KeystoneRegion:
42     type: string
43     default: 'regionOne'
44     description: Keystone region for endpoint
45   RabbitPassword:
46     description: The password for RabbitMQ
47     type: string
48     hidden: true
49   RabbitUserName:
50     default: guest
51     description: The username for RabbitMQ
52     type: string
53   RabbitClientUseSSL:
54     default: false
55     description: >
56         Rabbit client subscriber parameter to specify
57         an SSL connection to the RabbitMQ host.
58     type: string
59   RabbitClientPort:
60     default: 5672
61     description: Set rabbit subscriber port, change this if using SSL
62     type: number
63   CeilometerApiEndpoint:
64     default: false
65     description: Whether to create or skip API endpoint. Set this to
66         false, if you choose to disable Ceilometer API service.
67     type: boolean
68
69 outputs:
70   role_data:
71     description: Role data for the Ceilometer role.
72     value:
73       service_name: ceilometer_base
74       config_settings:
75         ceilometer::debug: {get_param: Debug}
76         ceilometer::keystone::authtoken::project_name: 'service'
77         ceilometer::keystone::authtoken::user_domain_name: 'Default'
78         ceilometer::keystone::authtoken::project_domain_name: 'Default'
79         ceilometer::keystone::authtoken::password: {get_param: CeilometerPassword}
80         ceilometer::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
81         ceilometer::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
82         ceilometer::agent::auth::auth_password: {get_param: CeilometerPassword}
83         ceilometer::agent::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
84         ceilometer::agent::notification::event_pipeline_publishers: {get_param: EventPipelinePublishers}
85         ceilometer::agent::auth::auth_region: {get_param: KeystoneRegion}
86         ceilometer::agent::auth::auth_tenant_name: 'service'
87         ceilometer::agent::auth::auth_user_domain_name: 'Default'
88         ceilometer::agent::auth::auth_project_domain_name: 'Default'
89         ceilometer::agent::auth::auth_endpoint_type: 'internalURL'
90         ceilometer::dispatcher::gnocchi::url: {get_param: [EndpointMap, GnocchiInternal, uri]}
91         ceilometer::dispatcher::gnocchi::filter_project: 'service'
92         ceilometer::dispatcher::gnocchi::archive_policy: 'low'
93         ceilometer::dispatcher::gnocchi::resources_definition_file: 'gnocchi_resources.yaml'
94         ceilometer::rabbit_userid: {get_param: RabbitUserName}
95         ceilometer::rabbit_password: {get_param: RabbitPassword}
96         ceilometer::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
97         ceilometer::rabbit_port: {get_param: RabbitClientPort}
98         ceilometer::rabbit_heartbeat_timeout_threshold: 60
99         ceilometer::telemetry_secret: {get_param: CeilometerMeteringSecret}
100       service_config_settings:
101         keystone:
102           ceilometer_auth_enabled: true
103           ceilometer::keystone::auth::public_url: {get_param: [EndpointMap, CeilometerPublic, uri]}
104           ceilometer::keystone::auth::internal_url: {get_param: [EndpointMap, CeilometerInternal, uri]}
105           ceilometer::keystone::auth::admin_url: {get_param: [EndpointMap, CeilometerAdmin, uri]}
106           ceilometer::keystone::auth::password: {get_param: CeilometerPassword}
107           ceilometer::keystone::auth::region: {get_param: KeystoneRegion}
108           ceilometer::keystone::auth::tenant: 'service'
109           ceilometer::keystone::auth::configure_endpoint: {get_param: CeilometerApiEndpoint}
110         mysql:
111           ceilometer::db::mysql::password: {get_param: CeilometerPassword}
112           ceilometer::db::mysql::user: ceilometer
113           ceilometer::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
114           ceilometer::db::mysql::dbname: ceilometer
115           ceilometer::db::mysql::allowed_hosts:
116             - '%'
117             - "%{hiera('mysql_bind_host')}"