Commit 3fe7a545 by Edward Zarecor

run rsyslog from docker

parent 7ead4597
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role supervised-rsyslogd
#
#
# vars are namespaced with the module name.
#
supervised_rsyslogd_role_name: supervised-rsyslogd
#
# OS packages
#
supervised_rsyslogd_debian_pkgs: []
supervised_rsyslogd_redhat_pkgs: []
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role supervised-rsyslogd
#
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role supervised_rsyslogd
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: Create supervisor script
template: >
src=edx/app/supervisor/conf.available.d/rsyslogd.conf.j2
dest={{ supervisor_available_dir }}/rsyslogd.conf
owner={{ supervisor_user }}
group={{ common_web_user }}
mode=0644
tags:
- install
- install:configuration
- name: Enable supervisor script
file: >
src={{ supervisor_available_dir }}/rsyslogd.conf
dest={{ supervisor_cfg_dir }}/rsyslogd.conf
owner={{ supervisor_user }}
group={{ common_web_user }}
mode=0644
state=link
force=yes
tags:
- install
- install:configuration
[program:rsyslog]
command=rsyslogd -n -c5
autostart=true
autorestart=true
redirect_stderr=true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment