mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Add rsyslog config to container from file for consistency
This commit is contained in:
4
installer/roles/image_build/files/rsyslog.conf
Normal file
4
installer/roles/image_build/files/rsyslog.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
$WorkDirectory /var/lib/awx/rsyslog
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
*.* stop
|
||||
action(type="omfwd" target="localhost" port="9000" protocol="udp")
|
||||
@@ -101,7 +101,7 @@ ADD rsyslog.repo /etc/yum.repos.d/
|
||||
RUN yum install -y rsyslog-omhttp
|
||||
|
||||
# Pre-create things that we need to write to
|
||||
RUN for dir in /home/awx /var/run/supervisor /var/lib/awx/rsyslog /var/run/rsyslog /var/log/tower /var/log/nginx /var/lib/nginx; \
|
||||
RUN for dir in /home/awx /var/run/supervisor /var/lib/awx /var/lib/awx/rsyslog /var/run/rsyslog /var/log/tower /var/log/nginx /var/lib/nginx; \
|
||||
do mkdir -p $dir; chmod -R g+rwx $dir; chgrp -R root $dir; done && \
|
||||
\
|
||||
for file in /etc/passwd /var/run/nginx.pid; \
|
||||
@@ -116,7 +116,7 @@ RUN find /var/lib/awx -not -path '/var/lib/awx/venv*' | xargs chgrp root && \
|
||||
chmod u+s /usr/bin/bwrap # https://github.com/ansible/awx/issues/5224
|
||||
|
||||
# Create default awx rsyslog.conf
|
||||
RUN echo -e '$WorkDirectory /var/lib/awx/rsyslog\n$IncludeConfig /etc/rsyslog.d/*.conf' >> /var/lib/awx/rsyslog/rsyslog.conf
|
||||
ADD rsyslog.conf /var/lib/awx/rsyslog/rsyslog.conf
|
||||
|
||||
|
||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
|
||||
|
||||
@@ -7,4 +7,5 @@ data:
|
||||
rsyslog-config: |
|
||||
$WorkDirectory /var/lib/awx/rsyslog
|
||||
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||
|
||||
*.* stop
|
||||
action(type="omfwd" target="localhost" port="9000" protocol="udp")
|
||||
|
||||
Reference in New Issue
Block a user