1 heat_template_version: pike
3 description: Collectd client service
8 description: Mapping of service_name -> network name. Typically set
9 via parameter_defaults in the resource registry. This
10 mapping overrides those in ServiceNetMapDefaults.
14 description: Mapping of service endpoint -> protocol. Typically set
15 via parameter_defaults in the resource registry.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
28 CollectdDefaultPlugins:
36 type: comma_delimited_list
38 List of collectd plugins to activate on all overcloud hosts. See
39 the documentation for the puppet-collectd module for a list plugins
40 supported by the module (https://github.com/voxpupuli/puppet-collectd).
41 Set this key to override the default list of plugins. Use
42 CollectdExtraPlugins if you want to load additional plugins without
43 overriding the defaults.
46 type: comma_delimited_list
48 List of collectd plugins to activate on all overcloud hosts. See
49 the documentation for the puppet-collectd module for a list plugins
50 supported by the module (https://github.com/voxpupuli/puppet-collectd).
51 Set this key to load plugins in addition to those in
52 CollectdDefaultPlugins.
56 Address of remote collectd server to which we will send
63 Port on remote collectd server to which we will send
68 Username for authenticating to the remote collectd server. The default
69 is to not configure any authentication.
75 Password for authenticating to the remote collectd server. The
76 default is to not configure any authentication.
78 CollectdSecurityLevel:
81 Security level setting for remote collectd connection. If it is
82 set to Sign or Encrypt the CollectdPassword and CollectdUsername
83 parameters need to be set.
93 description: Role data for the Collectd client role.
95 service_name: collectd
97 collectd::manage_repo: false
99 collectd::recurse: true
100 collectd::purge_config: true
101 collectd::minimum_version: "5.7"
102 tripleo::profile::base::metrics::collectd::collectd_server:
103 get_param: CollectdServer
104 tripleo::profile::base::metrics::collectd::collectd_port:
105 get_param: CollectdServerPort
106 tripleo::profile::base::metrics::collectd::collectd_username:
107 get_param: CollectdUsername
108 tripleo::profile::base::metrics::collectd::collectd_password:
109 get_param: CollectdPassword
110 tripleo::profile::base::metrics::collectd::collectd_securitylevel:
111 get_param: CollectdSecurityLevel
112 tripleo.collectd.plugins.collectd:
115 default_plugins: {get_param: CollectdDefaultPlugins}
116 extra_plugins: {get_param: CollectdExtraPlugins}
118 ($.data.default_plugins + $.data.extra_plugins)
119 .flatten().distinct()
121 include ::tripleo::profile::base::metrics::collectd
123 - name: Check if collectd is deployed
124 command: systemctl is-enabled collectd
127 register: collectd_enabled
128 - name: Check status of collectd service
130 /usr/bin/systemctl show collectd --property ActiveState |
132 when: collectd_enabled.rc == 0
133 tags: step0,validation
134 - name: Stop collectd service
136 when: collectd_enabled.rc == 0
137 service: name=collectd state=stopped
138 - name: Install collectd package if it was disabled
140 yum: name=collectd state=latest
141 when: collectd_enabled.rc != 0