aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/ceilometer-base.yaml
blob: d524e612cf038b8e04524d6be30de7cb6fb1b127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
heat_template_version: ocata

description: >
  OpenStack Ceilometer service configured with Puppet

parameters:
  ServiceNetMap:
    default: {}
    description: Mapping of service_name -> network name. Typically set
                 via parameter_defaults in the resource registry.  This
                 mapping overrides those in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    type: json
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  CeilometerBackend:
    default: 'mongodb'
    description: The ceilometer backend type.
    type: string
  CeilometerMeteringSecret:
    description: Secret shared by the ceilometer services.
    type: string
    hidden: true
  CeilometerPassword:
    description: The password for the ceilometer service account.
    type: string
    hidden: true
  CeilometerMeterDispatcher:
    default: ['gnocchi']
    description: Comma-seperated list of Dispatcher to process meter data
    type: comma_delimited_list
    constraints:
    - allowed_values: ['gnocchi', 'database']
  CeilometerEventDispatcher:
    default: ['panko', 'gnocchi']
    description: Comma-separated list of Dispatchers to process events data
    type: comma_delimited_list
    constraints:
    - allowed_values: ['panko', 'gnocchi', 'database']
  CeilometerWorkers:
    default: 0
    description: Number of workers for Ceilometer service.
    type: number
  EventPipelinePublishers:
    default: ['notifier://?topic=alarm.all']
    description: A list of publishers to put in event_pipeline.yaml.
    type: comma_delimited_list
  Debug:
    default: ''
    description: Set to True to enable debugging on all services.
    type: string
  KeystoneRegion:
    type: string
    default: 'regionOne'
    description: Keystone region for endpoint
  RabbitPassword:
    description: The password for RabbitMQ
    type: string
    hidden: true
  RabbitUserName:
    default: guest
    description: The username for RabbitMQ
    type: string
  RabbitClientUseSSL:
    default: false
    description: >
        Rabbit client subscriber parameter to specify
        an SSL connection to the RabbitMQ host.
    type: string
  RabbitClientPort:
    default: 5672
    description: Set rabbit subscriber port, change this if using SSL
    type: number
  CeilometerApiEndpoint:
    default: false
    description: Whether to create or skip API endpoint. Set this to
        false, if you choose to disable Ceilometer API service.
    type: boolean

outputs:
  role_data:
    description: Role data for the Ceilometer role.
    value:
      service_name: ceilometer_base
      config_settings:
        ceilometer::debug: {get_param: Debug}
        ceilometer::db::database_connection:
          list_join:
            - ''
            - - {get_param: [EndpointMap, MysqlInternal, protocol]}
            - - '://ceilometer:'
              - {get_param: CeilometerPassword}
              - '@'
              - {get_param: [EndpointMap, MysqlInternal, host]}
              - '/ceilometer'
              - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
        ceilometer_backend: {get_param: CeilometerBackend}
        # we include db_sync class in puppet-tripleo
        ceilometer::db::sync_db: false
        ceilometer::keystone::authtoken::project_name: 'service'
        ceilometer::keystone::authtoken::user_domain_name: 'Default'
        ceilometer::keystone::authtoken::project_domain_name: 'Default'
        ceilometer::keystone::authtoken::password: {get_param: CeilometerPassword}
        ceilometer::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
        ceilometer::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
        ceilometer::agent::auth::auth_password: {get_param: CeilometerPassword}
        ceilometer::agent::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
        ceilometer::agent::notification::event_pipeline_publishers: {get_param: EventPipelinePublishers}
        ceilometer::agent::auth::auth_region: {get_param: KeystoneRegion}
        ceilometer::agent::auth::auth_tenant_name: 'service'
        ceilometer::agent::auth::auth_user_domain_name: 'Default'
        ceilometer::agent::auth::auth_project_domain_name: 'Default'
        ceilometer::agent::auth::auth_endpoint_type: 'internalURL'
        ceilometer::collector::meter_dispatcher: {get_param: CeilometerMeterDispatcher}
        ceilometer::collector::event_dispatcher: {get_param: CeilometerEventDispatcher}
        ceilometer::dispatcher::gnocchi::url: {get_param: [EndpointMap, GnocchiInternal, uri]}
        ceilometer::dispatcher::gnocchi::filter_project: 'service'
        ceilometer::dispatcher::gnocchi::archive_policy: 'low'
        ceilometer::dispatcher::gnocchi::resources_definition_file: 'gnocchi_resources.yaml'
        ceilometer::rabbit_userid: {get_param: RabbitUserName}
        ceilometer::rabbit_password: {get_param: RabbitPassword}
        ceilometer::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
        ceilometer::rabbit_port: {get_param: RabbitClientPort}
        ceilometer::rabbit_heartbeat_timeout_threshold: 60
        ceilometer::db::database_db_max_retries: -1
        ceilometer::db::database_max_retries: -1
        ceilometer::telemetry_secret: {get_param: CeilometerMeteringSecret}
      service_config_settings:
        keystone:
          ceilometer_auth_enabled: true
          ceilometer::keystone::auth::public_url: {get_param: [EndpointMap, CeilometerPublic, uri]}
          ceilometer::keystone::auth::internal_url: {get_param: [EndpointMap, CeilometerInternal, uri]}
          ceilometer::keystone::auth::admin_url: {get_param: [EndpointMap, CeilometerAdmin, uri]}
          ceilometer::keystone::auth::password: {get_param: CeilometerPassword}
          ceilometer::keystone::auth::region: {get_param: KeystoneRegion}
          ceilometer::keystone::auth::tenant: 'service'
          ceilometer::keystone::auth::configure_endpoint: {get_param: CeilometerApiEndpoint}
        mysql:
          ceilometer::db::mysql::password: {get_param: CeilometerPassword}
          ceilometer::db::mysql::user: ceilometer
          ceilometer::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
          ceilometer::db::mysql::dbname: ceilometer
          ceilometer::db::mysql::allowed_hosts:
            - '%'
            - "%{hiera('mysql_bind_host')}"