* create syslog.template.yml
* disable klog syslog source (thanks phusion/baseimage-docker)
#
templates:
- "templates/cron.template.yml"
+ - "templates/syslog.template.yml"
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/sshd.template.yml"
## this is the all-in-one, standalone Discourse Docker container template
templates:
- "templates/cron.template.yml"
+ - "templates/syslog.template.yml"
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/sshd.template.yml"
exec 2>&1
cd /
exec cron -f
- - file:
- path: /etc/service/rsyslog/run
- chmod: "+x"
- contents: |
- #!/bin/bash
- exec 2>&1
- cd /
- exec rsyslogd -n
-
- exec:
hook: cron
cmd: echo cron installed
- - exec:
- cmd: apt-get -y install rsyslog
--- /dev/null
+run:
+ - file:
+ path: /etc/service/rsyslog/run
+ chmod: "+x"
+ contents: |
+ #!/bin/bash
+ exec 2>&1
+ cd /
+ exec rsyslogd -n
+
+ - exec: apt-get -y install rsyslog
+ - replace:
+ filename: "/etc/rsyslog.conf"
+ from: "$ModLoad imklog"
+ to: "#$ModLoad imklog"
+