copr/base: override rsyslog logrotate config
Copy-paste the stuff others use in this repository. While on it, assure logrotate is installed on copr boxes, and install the packages by a single 'package' statement.
This commit is contained in:
parent
185c7e2af5
commit
265fd1bb73
2 changed files with 41 additions and 23 deletions
20
roles/copr/base/files/syslog-logrotate
Normal file
20
roles/copr/base/files/syslog-logrotate
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/var/log/cron
|
||||||
|
/var/log/maillog
|
||||||
|
/var/log/messages
|
||||||
|
/var/log/secure
|
||||||
|
/var/log/spooler
|
||||||
|
{
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||||
|
endscript
|
||||||
|
daily
|
||||||
|
rotate 7
|
||||||
|
missingok
|
||||||
|
ifempty
|
||||||
|
compress
|
||||||
|
compresscmd /usr/bin/xz
|
||||||
|
uncompresscmd /usr/bin/xz
|
||||||
|
compressext .xz
|
||||||
|
dateext
|
||||||
|
}
|
|
@ -41,8 +41,20 @@
|
||||||
copy: src=sysconfig.crond dest=/etc/sysconfig/crond
|
copy: src=sysconfig.crond dest=/etc/sysconfig/crond
|
||||||
notify: restart crond
|
notify: restart crond
|
||||||
|
|
||||||
- name: install anacrontab
|
- name: install base copr packages
|
||||||
package: name=cronie-anacron state=present
|
package:
|
||||||
|
name:
|
||||||
|
- acl # useful for ansible acl module
|
||||||
|
- bash-completion
|
||||||
|
- cronie-anacron
|
||||||
|
- ethtool
|
||||||
|
- golang-github-prometheus-node-exporter
|
||||||
|
- rsyslog-logrotate
|
||||||
|
- screen
|
||||||
|
- tmux
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
packages
|
||||||
|
|
||||||
- name: configure anacrond to not send mails to root user
|
- name: configure anacrond to not send mails to root user
|
||||||
lineinfile: dest=/etc/anacrontab
|
lineinfile: dest=/etc/anacrontab
|
||||||
|
@ -52,35 +64,21 @@
|
||||||
regexp="^MAILTO"
|
regexp="^MAILTO"
|
||||||
notify: restart crond
|
notify: restart crond
|
||||||
|
|
||||||
- name: install copr-selinux
|
- name: override the default syslog logrotate file
|
||||||
dnf: state=latest pkg=copr-selinux
|
copy: src=syslog-logrotate dest=/etc/logrotate.d/syslog
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- logrotate
|
||||||
|
|
||||||
- name: install node_exporter
|
- name: install copr-selinux
|
||||||
dnf: state=present pkg=golang-github-prometheus-node-exporter
|
package:
|
||||||
|
state: latest
|
||||||
|
name: copr-selinux
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: restart node exporter
|
- name: restart node exporter
|
||||||
service: state=started enabled=yes name=node_exporter
|
service: state=started enabled=yes name=node_exporter
|
||||||
|
|
||||||
- name: install dev helper packages
|
|
||||||
dnf:
|
|
||||||
state: present
|
|
||||||
pkg:
|
|
||||||
- acl # useful for ansible acl module
|
|
||||||
- "bash-completion"
|
|
||||||
- "screen"
|
|
||||||
- "tmux"
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: install ethtool
|
|
||||||
dnf: state=present pkg=ethtool
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: check offloading
|
- name: check offloading
|
||||||
shell: "ethtool -k eth0 | egrep -q 'tcp-segmentation-offload: on|generic-receive-offload: on|generic-segmentation-offload: on'"
|
shell: "ethtool -k eth0 | egrep -q 'tcp-segmentation-offload: on|generic-receive-offload: on|generic-segmentation-offload: on'"
|
||||||
register: offloading
|
register: offloading
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue