--- /dev/null
+
+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
+