summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-10-25 12:55:11 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-25 12:55:11 -0400
commitb31b6ebca5ca916776f4222fab1dadfb940afac7 (patch)
tree4ddb21a3ecd6cca03bbfc1a293c426bdbbae75f9
parente6ae87aa370c35b444385efe2fbab480d5cde336 (diff)
downloadopenshift-b31b6ebca5ca916776f4222fab1dadfb940afac7.tar.gz
openshift-b31b6ebca5ca916776f4222fab1dadfb940afac7.tar.bz2
openshift-b31b6ebca5ca916776f4222fab1dadfb940afac7.tar.xz
openshift-b31b6ebca5ca916776f4222fab1dadfb940afac7.zip
Ensure journald persistence directories exist
Currently, we configure openshfit masters to modify journald to use persistent storage. The directory structure must be created manually according to documentation. This commit ensures the needed directory is created. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1506141
-rw-r--r--roles/openshift_master/tasks/journald.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/journald.yml b/roles/openshift_master/tasks/journald.yml
index f79955e95..e2edd5ef4 100644
--- a/roles/openshift_master/tasks/journald.yml
+++ b/roles/openshift_master/tasks/journald.yml
@@ -3,6 +3,11 @@
stat: path=/etc/systemd/journald.conf
register: journald_conf_file
+- name: Create journald persistence directories
+ file:
+ path: /var/log/journal
+ state: directory
+
- name: Update journald setup
replace:
dest: /etc/systemd/journald.conf