Преглед изворни кода

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
Michael Gugino пре 7 година
родитељ
комит
b31b6ebca5
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      roles/openshift_master/tasks/journald.yml

+ 5 - 0
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