Remove config-external for rsyslog
Additionally, fix privleges for rsyslog container. It needs to be privleged otherwise it will complain about creating device node Change-Id: I364858f0a1df01b53cee46db3ec7cd5ecbe82c54 Partially-Implements: blueprint replace-config-external
This commit is contained in:
parent
40f9f0816f
commit
f098e76676
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Starting log_data container
|
- name: Starting log_data container
|
||||||
docker:
|
docker:
|
||||||
docker_api_version: "{{ docker_api_version }}"
|
docker_api_version: "{{ docker_api_version }}"
|
||||||
@ -31,6 +30,7 @@
|
|||||||
username: "{{ docker_registry_username }}"
|
username: "{{ docker_registry_username }}"
|
||||||
password: "{{ docker_registry_password }}"
|
password: "{{ docker_registry_password }}"
|
||||||
insecure_registry: "{{ docker_insecure_registry }}"
|
insecure_registry: "{{ docker_insecure_registry }}"
|
||||||
|
privileged: True
|
||||||
name: rsyslog
|
name: rsyslog
|
||||||
image: "{{ rsyslog_image_full }}"
|
image: "{{ rsyslog_image_full }}"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
"command": "/usr/sbin/rsyslogd -n",
|
"command": "/usr/sbin/rsyslogd -n",
|
||||||
"config_files": []
|
"config_files": [
|
||||||
|
{
|
||||||
|
"source": "/opt/kolla/config_files/rsyslog.conf",
|
||||||
|
"dest": "/etc/rsyslog.conf",
|
||||||
|
"owner": "root",
|
||||||
|
"perm": "0644"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ RUN apt-get install -y --no-install-recommends \
|
|||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY config-external.sh /opt/kolla/
|
|
||||||
COPY start.sh /
|
COPY start.sh /
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [[ -f "/dev/log" ]]; then
|
|
||||||
rm "/dev/log"
|
|
||||||
fi
|
|
||||||
|
|
||||||
SOURCE="/opt/kolla/rsyslog/rsyslog.conf"
|
|
||||||
TARGET="/etc/rsyslog.conf"
|
|
||||||
OWNER="root"
|
|
||||||
|
|
||||||
if [[ -f "$SOURCE" ]]; then
|
|
||||||
rm $TARGET
|
|
||||||
cp $SOURCE $TARGET
|
|
||||||
chown ${OWNER}: $TARGET
|
|
||||||
chmod 0644 $TARGET
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user