1 heat_template_version: ocata
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.
20 CollectdDefaultPlugins:
28 type: comma_delimited_list
30 List of collectd plugins to activate on all overcloud hosts. See
31 the documentation for the puppet-collectd module for a list plugins
32 supported by the module (https://github.com/voxpupuli/puppet-collectd).
33 Set this key to override the default list of plugins. Use
34 CollectdExtraPlugins if you want to load additional plugins without
35 overriding the defaults.
38 type: comma_delimited_list
40 List of collectd plugins to activate on all overcloud hosts. See
41 the documentation for the puppet-collectd module for a list plugins
42 supported by the module (https://github.com/voxpupuli/puppet-collectd).
43 Set this key to load plugins in addition to those in
44 CollectdDefaultPlugins.
48 Address of remote collectd server to which we will send
55 Port on remote collectd server to which we will send
60 Username for authenticating to the remote collectd server. The default
61 is to not configure any authentication.
67 Password for authenticating to the remote collectd server. The
68 default is to not configure any authentication.
70 CollectdSecurityLevel:
73 Security level setting for remote collectd connection. If it is
74 set to Sign or Encrypt the CollectdPassword and CollectdUsername
75 parameters need to be set.
85 description: Role data for the Collectd client role.
87 service_name: collectd
89 collectd::manage_repo: false
91 collectd::recurse: true
92 collectd::purge_config: true
93 collectd::minimum_version: "5.7"
94 tripleo::profile::base::metrics::collectd::collectd_server:
95 get_param: CollectdServer
96 tripleo::profile::base::metrics::collectd::collectd_port:
97 get_param: CollectdServerPort
98 tripleo::profile::base::metrics::collectd::collectd_username:
99 get_param: CollectdUsername
100 tripleo::profile::base::metrics::collectd::collectd_password:
101 get_param: CollectdPassword
102 tripleo::profile::base::metrics::collectd::collectd_securitylevel:
103 get_param: CollectdSecurityLevel
104 tripleo.collectd.plugins.collectd:
107 default_plugins: {get_param: CollectdDefaultPlugins}
108 extra_plugins: {get_param: CollectdExtraPlugins}
110 ($.data.default_plugins + $.data.extra_plugins)
111 .flatten().distinct()
113 include ::tripleo::profile::base::metrics::collectd
115 - name: Check if collectd is deployed
116 command: systemctl is-enabled collectd
119 register: collectd_enabled
120 - name: Check status of collectd service
122 /usr/bin/systemctl show collectd --property ActiveState |
124 when: collectd_enabled.rc == 0
125 tags: step0,validation
126 - name: Stop collectd service
128 when: collectd_enabled.rc == 0
129 service: name=collectd state=stopped
130 - name: Install collectd package if it was disabled
132 yum: name=collectd state=latest
133 when: collectd_enabled.rc != 0