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.
83 description: Role data for the Collectd client role.
85 service_name: collectd
87 collectd::manage_repo: false
89 collectd::recurse: true
90 collectd::purge_config: true
91 collectd::minimum_version: "5.7"
92 tripleo::profile::base::metrics::collectd::collectd_server:
93 get_param: CollectdServer
94 tripleo::profile::base::metrics::collectd::collectd_port:
95 get_param: CollectdServerPort
96 tripleo::profile::base::metrics::collectd::collectd_username:
97 get_param: CollectdUsername
98 tripleo::profile::base::metrics::collectd::collectd_password:
99 get_param: CollectdPassword
100 tripleo::profile::base::metrics::collectd::collectd_securitylevel:
101 get_param: CollectdSecurityLevel
102 tripleo.collectd.plugins.collectd:
105 default_plugins: {get_param: CollectdDefaultPlugins}
106 extra_plugins: {get_param: CollectdExtraPlugins}
108 ($.data.default_plugins + $.data.extra_plugins)
109 .flatten().distinct()
111 include ::tripleo::profile::base::metrics::collectd
113 - name: Check if collectd is deployed
114 command: systemctl is-enabled collectd
117 register: collectd_enabled
118 - name: Check status of collectd service
120 /usr/bin/systemctl show collectd --property ActiveState |
122 when: collectd_enabled.rc == 0
123 tags: step0,validation
124 - name: Stop collectd service
126 when: collectd_enabled.rc == 0
127 service: name=collectd state=stopped
128 - name: Install collectd package if it was disabled
130 yum: name=collectd state=latest
131 when: collectd_enabled.rc != 0