Procházet zdrojové kódy

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 před 7 roky
rodič
revize
b31b6ebca5
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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