From 9be8511892902ec2dd8f4bf9e1cb2802b8402a6a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Feb 2016 19:08:26 +0100 Subject: [PATCH] Adding basic/rsyslog.sls --- basic/rsyslog.sls | 59 +++++++++++++++++++++++++++++++++++++++++++++++ top.sls | 2 ++ 2 files changed, 61 insertions(+) create mode 100644 basic/rsyslog.sls diff --git a/basic/rsyslog.sls b/basic/rsyslog.sls new file mode 100644 index 0000000..7e77f11 --- /dev/null +++ b/basic/rsyslog.sls @@ -0,0 +1,59 @@ + +rsyslog: + pkg: + - installed + service: + - running + - enable: True + - watch: + - pkg: rsyslog + - file: /etc/rsyslog.conf + - file: /etc/rsyslog.d/60-default.conf + - file: /etc/rsyslog.d/70-pb.conf + +/etc/rsyslog.conf: + file.managed: + - user: root + - group: root + - mode: 644 + - source: salt://basic/files/rsyslog.conf + - backup: minion + - require: + - pkg: rsyslog + +/etc/rsyslog.d: + file.directory: + - user: root + - group: root + - dir_mode: 755 + +/var/log/syslog.d: + file.directory: + - user: root + - group: root + - dir_mode: 755 + +/etc/rsyslog.d/60-default.conf: + file.managed: + - user: root + - group: root + - mode: 644 + - source: salt://basic/files/rsyslog.60-default.conf + - backup: minion + - require: + - pkg: rsyslog + - file: /etc/rsyslog.d + - file: /var/log/syslog.d + +/etc/rsyslog.d/70-pb.conf: + file.managed: + - user: root + - group: root + - mode: 644 + - source: salt://basic/files/rsyslog.70-pb.conf + - backup: minion + - require: + - pkg: rsyslog + - file: /etc/rsyslog.d + - file: /var/log/syslog.d + diff --git a/top.sls b/top.sls index f667023..ee5654b 100644 --- a/top.sls +++ b/top.sls @@ -3,6 +3,7 @@ base: - debian.apt - basic.localization # - basic.rsync + - basic.rsyslog - basic.shells - basic.skel # - basic.editors @@ -10,5 +11,6 @@ base: 'ns3.uhu-banane.de': - debian.apt - basic.localization + - basic.rsyslog - basic.shells - basic.skel -- 2.39.5