2016-12-23 11:43:39 +00:00
|
|
|
heat_template_version: ocata
|
2016-06-20 14:47:49 -04:00
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Ceilometer Compute Agent service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2016-08-11 23:07:46 +02:00
|
|
|
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
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-06-20 14:47:49 -04:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-06-09 15:39:22 +02:00
|
|
|
MonitoringSubscriptionCeilometerCompute:
|
|
|
|
default: 'overcloud-ceilometer-agent-compute'
|
|
|
|
type: string
|
2017-01-18 15:37:25 -05:00
|
|
|
InstanceDiscoveryMethod:
|
|
|
|
default: 'libvirt_metadata'
|
|
|
|
description: Method used to discover instances running on compute node
|
|
|
|
type: string
|
|
|
|
constraints:
|
|
|
|
- allowed_values: ['naive', 'libvirt_metadata', 'workload_partitioning']
|
2016-06-20 14:47:49 -04:00
|
|
|
|
|
|
|
resources:
|
|
|
|
CeilometerServiceBase:
|
|
|
|
type: ./ceilometer-base.yaml
|
|
|
|
properties:
|
2016-08-11 23:07:46 +02:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-08-17 09:26:05 -04:00
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2016-06-20 14:47:49 -04:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Ceilometer Compute Agent role.
|
|
|
|
value:
|
2016-07-28 10:30:10 +01:00
|
|
|
service_name: ceilometer_agent_compute
|
2016-06-09 15:39:22 +02:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCompute}
|
2016-06-20 14:47:49 -04:00
|
|
|
config_settings:
|
2017-01-18 15:37:25 -05:00
|
|
|
map_merge:
|
|
|
|
- get_attr: [CeilometerServiceBase, role_data, config_settings]
|
|
|
|
- ceilometer::agent::compute::instance_discovery_method: {get_param: InstanceDiscoveryMethod}
|
2016-06-20 14:47:49 -04:00
|
|
|
step_config: |
|
|
|
|
include ::tripleo::profile::base::ceilometer::agent::compute
|
2016-12-01 10:06:34 +00:00
|
|
|
upgrade_tasks:
|
2016-12-23 16:07:44 +02:00
|
|
|
- name: "PreUpgrade step0,validation: Check service openstack-ceilometer-compute is running"
|
|
|
|
shell: /usr/bin/systemctl show 'openstack-ceilometer-compute' --property ActiveState | grep '\bactive\b'
|
|
|
|
tags: step0,validation
|
2016-12-01 10:06:34 +00:00
|
|
|
- name: Stop ceilometer_agent_compute service
|
|
|
|
tags: step2
|
|
|
|
service: name=openstack-ceilometer-compute state=stopped
|