1 heat_template_version: pike
3 description: Collectd client service
8 description: Dictionary packing service data
12 description: Mapping of service_name -> network name. Typically set
13 via parameter_defaults in the resource registry. This
14 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
26 description: Role name on which the service is applied
30 description: Parameters specific to the role
32 CollectdDefaultPlugins:
40 type: comma_delimited_list
42 List of collectd plugins to activate on all overcloud hosts. See
43 the documentation for the puppet-collectd module for a list plugins
44 supported by the module (https://github.com/voxpupuli/puppet-collectd).
45 Set this key to override the default list of plugins. Use
46 CollectdExtraPlugins if you want to load additional plugins without
47 overriding the defaults.
50 type: comma_delimited_list
52 List of collectd plugins to activate on all overcloud hosts. See
53 the documentation for the puppet-collectd module for a list plugins
54 supported by the module (https://github.com/voxpupuli/puppet-collectd).
55 Set this key to load plugins in addition to those in
56 CollectdDefaultPlugins.
60 Address of remote collectd server to which we will send
67 Port on remote collectd server to which we will send
72 Username for authenticating to the remote collectd server. The default
73 is to not configure any authentication.
79 Password for authenticating to the remote collectd server. The
80 default is to not configure any authentication.
82 CollectdSecurityLevel:
85 Security level setting for remote collectd connection. If it is
86 set to Sign or Encrypt the CollectdPassword and CollectdUsername
87 parameters need to be set.
97 description: Role data for the Collectd client role.
99 service_name: collectd
101 collectd::manage_repo: false
102 collectd::purge: true
103 collectd::recurse: true
104 collectd::purge_config: true
105 collectd::minimum_version: "5.7"
106 tripleo::profile::base::metrics::collectd::collectd_server:
107 get_param: CollectdServer
108 tripleo::profile::base::metrics::collectd::collectd_port:
109 get_param: CollectdServerPort
110 tripleo::profile::base::metrics::collectd::collectd_username:
111 get_param: CollectdUsername
112 tripleo::profile::base::metrics::collectd::collectd_password:
113 get_param: CollectdPassword
114 tripleo::profile::base::metrics::collectd::collectd_securitylevel:
115 get_param: CollectdSecurityLevel
116 tripleo.collectd.plugins.collectd:
119 default_plugins: {get_param: CollectdDefaultPlugins}
120 extra_plugins: {get_param: CollectdExtraPlugins}
122 ($.data.default_plugins + $.data.extra_plugins)
123 .flatten().distinct()
125 include ::tripleo::profile::base::metrics::collectd
127 - name: Check if collectd is deployed
128 command: systemctl is-enabled collectd
131 register: collectd_enabled
132 - name: Check status of collectd service
134 /usr/bin/systemctl show collectd --property ActiveState |
136 when: collectd_enabled.rc == 0
137 tags: step0,validation
138 - name: Stop collectd service
140 when: collectd_enabled.rc == 0
141 service: name=collectd state=stopped
142 - name: Install collectd package if it was disabled
144 yum: name=collectd state=latest
145 when: collectd_enabled.rc != 0