summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorMaciej Szulik <maszulik@redhat.com>2017-03-23 16:01:20 +0100
committerMaciej Szulik <maszulik@redhat.com>2017-09-12 21:49:40 +0200
commitf827350f1d3dea4e910dff1a9698e5cc75fecb93 (patch)
tree55b66a87413b449be12e81d0a1066d973686e612 /roles/openshift_master/tasks
parentfaed701d8fd50e7ce6540fd59c2f15fea82de0f6 (diff)
downloadopenshift-f827350f1d3dea4e910dff1a9698e5cc75fecb93.tar.gz
openshift-f827350f1d3dea4e910dff1a9698e5cc75fecb93.tar.bz2
openshift-f827350f1d3dea4e910dff1a9698e5cc75fecb93.tar.xz
openshift-f827350f1d3dea4e910dff1a9698e5cc75fecb93.zip
Increase rate limiting in journald.conf
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index 121261e94..373ec0806 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -180,6 +180,28 @@
- name: Install the systemd units
include: systemd_units.yml
+- name: Checking for journald.conf
+ stat: path=/etc/systemd/journald.conf
+ register: journald_conf_file
+
+- name: Update journald setup
+ replace:
+ dest: /etc/systemd/journald.conf
+ regexp: '^(\#| )?{{ item.var }}=\s*.*?$'
+ replace: ' {{ item.var }}={{ item.val }}'
+ backup: yes
+ with_items: "{{ journald_vars_to_replace | default([]) }}"
+ when: journald_conf_file.stat.exists
+ register: journald_update
+
+# I need to restart journald immediatelly, otherwise it gets into way during
+# further steps in ansible
+- name: Restart journald
+ systemd:
+ name: systemd-journald
+ state: restarted
+ when: journald_update | changed
+
- name: Install Master system container
include: system_container.yml
when: