1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-10 00:46:12 +02:00

Add cpu/memory accounting to many roles

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2018-02-28 19:50:32 +01:00
parent 0718953bd5
commit b59d6b99df
No known key found for this signature in database
GPG Key ID: 6D1655C14CE1C13E
20 changed files with 67 additions and 1 deletions

View File

@ -61,3 +61,6 @@
- name: activate systemd timers for backup
service: name=borg-backup.timer enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property borg-backup CPUAccounting=yes MemoryAccounting=yes

View File

@ -6,3 +6,6 @@
- name: activate cronie.service
service: name=cronie enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property cronie CPUAccounting=yes MemoryAccounting=yes

View File

@ -17,3 +17,6 @@
- name: start and enable dovecot
service: name=dovecot enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property dovecot CPUAccounting=yes MemoryAccounting=yes

View File

@ -21,3 +21,6 @@
- name: start and enable service
service: name=grafana state=started enabled=true
- name: enable systemd ressource accounting
command: systemctl set-property grafana CPUAccounting=yes MemoryAccounting=yes

View File

@ -15,6 +15,9 @@
- name: start and enable the service
service: name=mariadb state=started enabled=yes
- name: enable systemd ressource accounting
command: systemctl set-property mariadb CPUAccounting=yes MemoryAccounting=yes
- name: delete anonymous users
mysql_user: user='' host_all=yes state='absent'

View File

@ -149,3 +149,9 @@
with_items:
- synapse.service
- matrix-appservice-irc.service
- name: enable systemd ressource accounting
command: systemctl set-property {{item}} CPUAccounting=yes MemoryAccounting=yes
with_items:
- synapse
- matrix-appservice-irc

View File

@ -65,3 +65,6 @@
- name: enable nginx
service: name=nginx enabled=yes
- name: enable systemd ressource accounting
command: systemctl set-property nginx CPUAccounting=yes MemoryAccounting=yes

View File

@ -32,3 +32,6 @@
- name: start and enable opendkim
service: name=opendkim enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property opendkim CPUAccounting=yes MemoryAccounting=yes

View File

@ -40,3 +40,6 @@
service: name={{ item }} enabled=yes state=started
with_items:
- planet.timer
- name: enable systemd ressource accounting
command: systemctl set-property planet CPUAccounting=yes MemoryAccounting=yes

View File

@ -62,6 +62,9 @@
- name: start and enable postfix
service: name=postfix enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property postfix CPUAccounting=yes MemoryAccounting=yes
- name: remove old files
file: path={{item}} state=absent
with_items:

View File

@ -11,4 +11,7 @@
- name: start and enable postfwd
service: name=postfwd enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property postfwd CPUAccounting=yes MemoryAccounting=yes

View File

@ -65,3 +65,6 @@
- oidentd.socket
- quassel.service
- clean-quassel.timer
- name: enable systemd ressource accounting
command: systemctl set-property quassel CPUAccounting=yes MemoryAccounting=yes

View File

@ -69,3 +69,6 @@
- name: start and enable security-tracker timer
service: name="security-tracker-update.timer" enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property security-tracker-update CPUAccounting=yes MemoryAccounting=yes

View File

@ -19,3 +19,6 @@
- name: start and enable sogrep units
service: name=createlinks.timer enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property createlinks CPUAccounting=yes MemoryAccounting=yes

View File

@ -49,3 +49,6 @@
- name: start spampd
service: name=spampd enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property spampd CPUAccounting=yes MemoryAccounting=yes

View File

@ -16,3 +16,6 @@
- name: start and enable sshd
service: name=sshd enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property sshd CPUAccounting=yes MemoryAccounting=yes

View File

@ -27,6 +27,9 @@
- syncrepo.timer
- rsyncd.socket
- name: enable systemd ressource accounting
command: systemctl set-property system-rsyncd.slice CPUAccounting=yes MemoryAccounting=yes
- name: set local mirror as cachedir
lineinfile:
dest: /etc/pacman.conf

View File

@ -13,3 +13,6 @@
- name: Active service
service: name=unbound state=started enabled=yes
- name: enable systemd ressource accounting
command: systemctl set-property unbound CPUAccounting=yes MemoryAccounting=yes

View File

@ -46,6 +46,12 @@
service: name=nginx-zabbix.service enabled=yes state=started
when: "'nginx' in group_names"
- name: enable systemd ressource accounting
command: systemctl set-property nginx-zabbix CPUAccounting=yes MemoryAccounting=yes
when: "'nginx' in group_names"
- name: run zabbix agent service
service: name=zabbix-agent enabled=yes state=started
- name: enable systemd ressource accounting
command: systemctl set-property zabbix-agent CPUAccounting=yes MemoryAccounting=yes

View File

@ -63,5 +63,8 @@
- name: start and enable systemd socket
service: name=php-fpm@zabbix-web.socket state=started enabled=true
- name: enable systemd ressource accounting
- name: enable systemd ressource accounting php-fpm
command: systemctl set-property php-fpm@zabbix-web CPUAccounting=yes MemoryAccounting=yes
- name: enable systemd ressource accounting zabbix-server
command: systemctl set-property zabbix-server-pgsql CPUAccounting=yes MemoryAccounting=yes