Replace config-external - rsyslog

Change-Id: Ic19c1a0e975f6097813cad52f880042e33730ff8
Partially-Implements: blueprint replace-config-external
This commit is contained in:
Sam Yaple 2015-09-27 13:25:32 +00:00
parent 94ea43fa55
commit f2aea128b3
4 changed files with 12 additions and 7 deletions

View File

@ -5,6 +5,11 @@
state: "directory" state: "directory"
recurse: "yes" recurse: "yes"
- name: Copying over rsyslog JSON configuration file
template:
src: "rsyslog.json.j2"
dest: "{{ node_config_directory }}/rsyslog/config.json"
- name: Copying over config(s) - name: Copying over config(s)
template: template:
src: "rsyslog.conf.j2" src: "rsyslog.conf.j2"

View File

@ -37,7 +37,7 @@
- "log_data" - "log_data"
volumes: volumes:
- "/var/lib/kolla/dev:/dev" - "/var/lib/kolla/dev:/dev"
- "{{ node_config_directory }}/rsyslog/:/opt/kolla/rsyslog/:ro" - "{{ node_config_directory }}/rsyslog/:/opt/kolla/config_files/:ro"
env: env:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"

View File

@ -0,0 +1,4 @@
{
"command": "/usr/sbin/rsyslogd -n",
"config_files": []
}

View File

@ -1,14 +1,10 @@
#!/bin/bash #!/bin/bash
set -o errexit set -o errexit
CMD="/usr/sbin/rsyslogd"
ARGS="-n"
# Loading common functions. # Loading common functions.
source /opt/kolla/kolla-common.sh source /opt/kolla/kolla-common.sh
# Execute config strategy python /opt/kolla/set_configs.py
set_configs CMD=$(cat /run_command)
exec $CMD $ARGS exec $CMD $ARGS