From: Michael Brown Date: Thu, 31 Jul 2014 05:03:57 +0000 (-0400) Subject: Move syslog into its own template, not cron X-Git-Url: https://vcs.fsf.org/?p=discourse_docker.git;a=commitdiff_plain;h=d0d7cd47035039a0d5f6f267e20ab94e4af3823a Move syslog into its own template, not cron * create syslog.template.yml * disable klog syslog source (thanks phusion/baseimage-docker) --- diff --git a/samples/data.yml b/samples/data.yml index 38ccdd4..df4864f 100644 --- a/samples/data.yml +++ b/samples/data.yml @@ -2,6 +2,7 @@ # templates: - "templates/cron.template.yml" + - "templates/syslog.template.yml" - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/sshd.template.yml" diff --git a/samples/standalone.yml b/samples/standalone.yml index cc9736c..70b1c8e 100644 --- a/samples/standalone.yml +++ b/samples/standalone.yml @@ -8,6 +8,7 @@ ## 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" diff --git a/templates/cron.template.yml b/templates/cron.template.yml index f98de08..259954a 100644 --- a/templates/cron.template.yml +++ b/templates/cron.template.yml @@ -7,17 +7,6 @@ run: 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 diff --git a/templates/syslog.template.yml b/templates/syslog.template.yml new file mode 100644 index 0000000..72c3339 --- /dev/null +++ b/templates/syslog.template.yml @@ -0,0 +1,16 @@ +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" +