collectd: modified collectd scripts directory and scripts files right so that only _collectd group can execute them

This commit is contained in:
Jérémy Dubois 2023-04-25 10:12:44 +02:00
parent 6f97857b91
commit e4bc6c1d97
2 changed files with 13 additions and 3 deletions

View file

@ -70,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* base: install bash, now needed for zzz_evobackup script * base: install bash, now needed for zzz_evobackup script
* base: dump-server-state.sh upstream release 23.03 * base: dump-server-state.sh upstream release 23.03
* post-install: execute motd-carp-state.sh only once an hour * post-install: execute motd-carp-state.sh only once an hour
* collectd: modified collectd scripts directory and scripts files right so that only _collectd group can execute them
### Fixed ### Fixed

View file

@ -26,6 +26,9 @@
file: file:
path: /usr/local/share/collectd/scripts path: /usr/local/share/collectd/scripts
state: directory state: directory
owner: "root"
group: "_collectd"
mode: "0710"
when: collectd_plugin_exec_ifq_drops or collectd_plugin_exec_dns_stats or collectd_plugin_exec_dhcp_pool when: collectd_plugin_exec_ifq_drops or collectd_plugin_exec_dns_stats or collectd_plugin_exec_dhcp_pool
tags: tags:
- collectd - collectd
@ -34,7 +37,9 @@
copy: copy:
src: ifq_drops.sh src: ifq_drops.sh
dest: /usr/local/share/collectd/scripts/ifq_drops.sh dest: /usr/local/share/collectd/scripts/ifq_drops.sh
mode: 0755 owner: "root"
group: "_collectd"
mode: "0710"
force: true force: true
when: collectd_plugin_exec_ifq_drops when: collectd_plugin_exec_ifq_drops
tags: tags:
@ -52,7 +57,9 @@
copy: copy:
src: dns_stats.sh src: dns_stats.sh
dest: /usr/local/share/collectd/scripts/dns_stats.sh dest: /usr/local/share/collectd/scripts/dns_stats.sh
mode: 0755 owner: "root"
group: "_collectd"
mode: "0710"
force: true force: true
when: collectd_plugin_exec_dns_stats when: collectd_plugin_exec_dns_stats
tags: tags:
@ -78,7 +85,9 @@
copy: copy:
src: dhcp_pool.pl src: dhcp_pool.pl
dest: /usr/local/share/collectd/scripts/dhcp_pool.pl dest: /usr/local/share/collectd/scripts/dhcp_pool.pl
mode: 0755 owner: "root"
group: "_collectd"
mode: "0710"
force: true force: true
when: collectd_plugin_exec_dhcp_pool when: collectd_plugin_exec_dhcp_pool
tags: tags: