aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg_sut
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-10-04 11:49:50 +0000
committerPeter Mikus <pmikus@cisco.com>2018-10-08 07:18:27 +0000
commit249c08a3a7b3a2117cca1b1b09cbae015a844021 (patch)
tree304a0db6257cfeb0c19a7814002af9470756be91 /resources/tools/testbed-setup/ansible/roles/tg_sut
parent6f02caf4cd1aadd837d8eadd240009ce06759b2c (diff)
Update Ansible scripts
- Allow Kubernetes to use specific version (allow-downgrade) - Introduce ansible-vault for sudo password management - Add Kubernetes fixes for 1.11.x+ Change-Id: Ieb77e773ea28f5c551ef0702027f699c1b758aa2 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg_sut')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/ubuntu_x86_64.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/ubuntu_x86_64.yaml b/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/ubuntu_x86_64.yaml
index b416f9f7de..76af5be7fd 100644
--- a/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/ubuntu_x86_64.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/tg_sut/tasks/ubuntu_x86_64.yaml
@@ -157,6 +157,7 @@
apt:
name: "kubeadm={{ kubernetes_apt_package_name }}"
state: "present"
+ force: yes
update_cache: True
install_recommends: False
cache_valid_time: "{{ apt_cache_time }}"
@@ -166,6 +167,7 @@
apt:
name: "kubectl={{ kubernetes_apt_package_name }}"
state: "present"
+ force: yes
update_cache: True
install_recommends: False
cache_valid_time: "{{ apt_cache_time }}"
@@ -175,8 +177,16 @@
apt:
name: "kubelet={{ kubernetes_apt_package_name }}"
state: "present"
+ force: yes
update_cache: True
install_recommends: False
cache_valid_time: "{{ apt_cache_time }}"
tags: install-kubernetes
+- name: Apply kubelet parameter
+ lineinfile:
+ path: '/etc/default/kubelet'
+ state: 'present'
+ regexp: '^KUBELET_EXTRA_ARGS=*'
+ line: 'KUBELET_EXTRA_ARGS=--feature-gates HugePages=false'
+ tags: install-kubernetes