瀏覽代碼

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