ソースを参照

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