Merge "Replace config-external - rsyslog"
This commit is contained in:
commit
018d806204
@ -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"
|
||||||
|
@ -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 }}"
|
||||||
|
|
||||||
|
4
ansible/roles/common/templates/rsyslog.json.j2
Normal file
4
ansible/roles/common/templates/rsyslog.json.j2
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"command": "/usr/sbin/rsyslogd -n",
|
||||||
|
"config_files": []
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user