浏览代码

Enable persistency on journal

In order for MachineConfig to work, logs in
journal need to survive after reboots, otherwise
the system is not capable to detect when
MachineConfig has finished a task. So adding
this configuration on journald.conf file

See: https://github.com/openshift/machine-config-operator/issues/1294

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Yolanda Robla 5 年之前
父节点
当前提交
66bbd07849
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      roles/openshift_node/tasks/install.yml

+ 9 - 0
roles/openshift_node/tasks/install.yml

@@ -66,3 +66,12 @@
   systemd:
     name: "crio"
     enabled: yes
+
+# persistent storage in journal is needed for MachineConfig to work
+- name: Enable persistent storage on journal
+  ini_file:
+    dest: "/etc/systemd/journald.conf"
+    section: Journal
+    option: Storage
+    value: "persistent"
+    no_extra_spaces: yes