summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-11-08 10:30:28 +0000
committerGerrit Code Review <review@openstack.org>2018-11-08 10:30:28 +0000
commitce5c415b25c9d274faf896a94e1fb0e72ea989f4 (patch)
tree3721c958532cc5e4ec2c1e7bc02eef8ac0248fe8
parent0a7adc6ddeb96cb8620e56a00781b1a9f65c9829 (diff)
parenta016dcba18176780ffbb599256b252ec7abd93f7 (diff)
Merge "install-kubernetes: enable minikube version pinning"
-rw-r--r--roles/install-kubernetes/README.rst5
-rw-r--r--roles/install-kubernetes/defaults/main.yaml1
-rw-r--r--roles/install-kubernetes/tasks/minikube.yaml2
3 files changed, 7 insertions, 1 deletions
diff --git a/roles/install-kubernetes/README.rst b/roles/install-kubernetes/README.rst
index ea0d962..a487989 100644
--- a/roles/install-kubernetes/README.rst
+++ b/roles/install-kubernetes/README.rst
@@ -6,3 +6,8 @@ An ansible role to install kubernetes.
6 :default: True 6 :default: True
7 7
8 If true, installs a Minikube cluster. 8 If true, installs a Minikube cluster.
9
10.. zuul:rolevar:: minikube_version
11 :default: latest
12
13 The version of Minikube to install.
diff --git a/roles/install-kubernetes/defaults/main.yaml b/roles/install-kubernetes/defaults/main.yaml
index 19ff90d..6040df0 100644
--- a/roles/install-kubernetes/defaults/main.yaml
+++ b/roles/install-kubernetes/defaults/main.yaml
@@ -1 +1,2 @@
1install_kubernetes_with_cluster: True 1install_kubernetes_with_cluster: True
2minikube_version: latest
diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml
index d0c2f50..7c3f979 100644
--- a/roles/install-kubernetes/tasks/minikube.yaml
+++ b/roles/install-kubernetes/tasks/minikube.yaml
@@ -5,7 +5,7 @@
5 5
6- name: Download Minikube 6- name: Download Minikube
7 get_url: 7 get_url:
8 url: https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 8 url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64
9 dest: /tmp/minikube 9 dest: /tmp/minikube
10 mode: 0755 10 mode: 0755
11 when: stat_result.stat.exists == False 11 when: stat_result.stat.exists == False