commit | 3b67e335b91ec1efd547d2111195337b05952354 | [log] [tgz] |
---|---|---|
author | Stephane Barbarie <sbarbari@ciena.com> | Tue Apr 03 11:45:36 2018 -0400 |
committer | Stephane Barbarie <sbarbari@ciena.com> | Tue Apr 03 11:45:36 2018 -0400 |
tree | 564b8474cedfe455b7bf011522014e3baa4a7277 | |
parent | 8f52afbe751ff1fbd061407f049b2c3377d8ca3d [diff] |
VOL-666 : Ensure persistence of disabled swaps on kubernetes - Swaps will remain disabled after reboot - Commented out swap partitions in /etc/fstab Change-Id: I7acd32ad717526d5a7cc4eb9b5904ab7e9724612
diff --git a/install/ansible/roles/voltha-k8s/tasks/config.yml b/install/ansible/roles/voltha-k8s/tasks/config.yml index d7a4d43..db35acf 100644 --- a/install/ansible/roles/voltha-k8s/tasks/config.yml +++ b/install/ansible/roles/voltha-k8s/tasks/config.yml
@@ -79,3 +79,8 @@ command: swapoff -a when: target == "cluster" tags: [voltha] + +- name: VOLT-HA Config | Comment out swap partitions from /etc/fstab + command: sed -i -e 's/^\/.* swap .*/#&/' /etc/fstab + when: target == "cluster" + tag: [voltha]