Open sgaosdgr opened 1 month ago
In https://github.com/bluebanquise/bluebanquise/blob/master/collections/monitoring/roles/prometheus/tasks/server_prometheus.yml, the permission for /etc/systemd/system/prometheus.service is currently set to 0755. For a systemd service file, the permission should be 0644
The permission for /etc/systemd/system/prometheus.service is currently set to 0755. It triggers warnings by systemd. The right permission should be 0644.
Apply role prometheus. Check permission on /etc/systemd/system/prometheus.service.
The expected permission should be 0644.
0755
Change line 30 to: mode: 0644
mode: 0644
Tested on RockyLinux 9 x86_64.
Same issue in https://github.com/bluebanquise/bluebanquise/blob/master/collections/monitoring/roles/prometheus/tasks/client.yml line 42
Dear @sgaosdgr
Thank you for notifying this bug :blush: Let me fix that :wink:
Done ! :smiley:
In https://github.com/bluebanquise/bluebanquise/blob/master/collections/monitoring/roles/prometheus/tasks/server_prometheus.yml, the permission for /etc/systemd/system/prometheus.service is currently set to 0755. For a systemd service file, the permission should be 0644
Context
The permission for /etc/systemd/system/prometheus.service is currently set to 0755. It triggers warnings by systemd. The right permission should be 0644.
Process
Apply role prometheus. Check permission on /etc/systemd/system/prometheus.service.
Expected result
The expected permission should be 0644.
Current result
0755
Possible Fix
Change line 30 to:
mode: 0644
Additional data
Tested on RockyLinux 9 x86_64.