summaryrefslogtreecommitdiffstats
path: root/roles/etcd/tasks/upgrade
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-09-25 17:20:35 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-09-26 12:57:58 +0200
commitd075df2e9eb45f007f35cde2d502d32ee8d14faf (patch)
treea4f09d4200c140e5a8383ddad5aba6f4d1427a70 /roles/etcd/tasks/upgrade
parentfa83e187398b03cb8118234cb92f42c200c5e227 (diff)
downloadopenshift-d075df2e9eb45f007f35cde2d502d32ee8d14faf.tar.gz
openshift-d075df2e9eb45f007f35cde2d502d32ee8d14faf.tar.bz2
openshift-d075df2e9eb45f007f35cde2d502d32ee8d14faf.tar.xz
openshift-d075df2e9eb45f007f35cde2d502d32ee8d14faf.zip
Set the etcd backend quota to 4GB by default
Diffstat (limited to 'roles/etcd/tasks/upgrade')
-rw-r--r--roles/etcd/tasks/upgrade/upgrade_image.yml5
-rw-r--r--roles/etcd/tasks/upgrade/upgrade_rpm.yml5
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/etcd/tasks/upgrade/upgrade_image.yml b/roles/etcd/tasks/upgrade/upgrade_image.yml
index cea95a1b3..24071f9ad 100644
--- a/roles/etcd/tasks/upgrade/upgrade_image.yml
+++ b/roles/etcd/tasks/upgrade/upgrade_image.yml
@@ -20,6 +20,11 @@
regexp: "{{ current_image.stdout }}$"
replace: "{{ new_etcd_image }}"
+- lineinfile:
+ destfile: "{{ etcd_conf_file }}"
+ regexp: '^ETCD_QUOTA_BACKEND_BYTES='
+ line: "ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}"
+
- name: Restart etcd_container
systemd:
name: "{{ etcd_service }}"
diff --git a/roles/etcd/tasks/upgrade/upgrade_rpm.yml b/roles/etcd/tasks/upgrade/upgrade_rpm.yml
index 324b69605..505e28afb 100644
--- a/roles/etcd/tasks/upgrade/upgrade_rpm.yml
+++ b/roles/etcd/tasks/upgrade/upgrade_rpm.yml
@@ -19,6 +19,11 @@
name: "{{ l_etcd_target_package }}"
state: latest
+- lineinfile:
+ destfile: "{{ etcd_conf_file }}"
+ regexp: '^ETCD_QUOTA_BACKEND_BYTES='
+ line: "ETCD_QUOTA_BACKEND_BYTES={{ etcd_quota_backend_bytes }}"
+
- name: Restart etcd
service:
name: "{{ etcd_service }}"