Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
b31b6ebca5
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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