소스 검색

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