summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-02-19 05:48:20 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-02-19 08:19:53 +0000
commit3d5ee8637f96743d21af65e2448de344f299039e (patch)
tree6d5f18b0b2a374f3b6ff093d0697f496abdf77f3
parent8567dddf9788dad9aa0f4b23b483bdd8ae7c219b (diff)
install-kubernetes: fix minikube config permission
It seems like new minikube changed the default minikube config permission. This change ensures the minikube config is owned by the ansible_user Change-Id: Ic1af1541fb1f32253678f989d7b62d21074514d5
Notes
Notes (review): Code-Review+2: David Shrewsbury <dshrewsb@redhat.com> Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Workflow+1: Tobias Henkel <tobias.henkel@bmw.de> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 19 Feb 2019 15:45:39 +0000 Reviewed-on: https://review.openstack.org/637682 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/install-kubernetes/tasks/minikube.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/install-kubernetes/tasks/minikube.yaml b/roles/install-kubernetes/tasks/minikube.yaml
index 7c3f979..425c001 100644
--- a/roles/install-kubernetes/tasks/minikube.yaml
+++ b/roles/install-kubernetes/tasks/minikube.yaml
@@ -44,5 +44,11 @@
44 MINIKUBE_HOME: "{{ ansible_user_dir }}" 44 MINIKUBE_HOME: "{{ ansible_user_dir }}"
45 KUBECONFIG: "{{ ansible_user_dir }}/.kube/config" 45 KUBECONFIG: "{{ ansible_user_dir }}/.kube/config"
46 46
47- name: Ensure minikube config is owned by ansible_user
48 become: yes
49 file:
50 path: "{{ ansible_user_dir }}/.minikube/client.key"
51 owner: "{{ ansible_user }}"
52
47- name: Get cluster info 53- name: Get cluster info
48 command: kubectl cluster-info 54 command: kubectl cluster-info