From c580efee7cf133d479fdc4b736ebfeab09d2f246 Mon Sep 17 00:00:00 2001 From: Samuli Silvius Date: Sun, 17 Mar 2019 18:06:33 +0200 Subject: Improve rancher role testability Move functionality from playbook to rancher role. Introduce defaults for holding default values in rancher role. Other small changes noticed while testing rancher role with molecule. Issue-ID: OOM-1729 Change-Id: I83befa9f0964c67e209d3def76bafd2a61c1ef33 Signed-off-by: Samuli Silvius --- ansible/roles/rancher/templates/kube_config.j2 | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 ansible/roles/rancher/templates/kube_config.j2 (limited to 'ansible/roles/rancher/templates') diff --git a/ansible/roles/rancher/templates/kube_config.j2 b/ansible/roles/rancher/templates/kube_config.j2 deleted file mode 100644 index 87f332e6..00000000 --- a/ansible/roles/rancher/templates/kube_config.j2 +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Config -clusters: -- cluster: - api-version: v1 - insecure-skip-tls-verify: true - server: "https://{{ ansible_host }}:8080/r/projects/{{ k8s_env_id }}/kubernetes:6443" - name: "{{ app_name }}" -contexts: -- context: - cluster: "{{ app_name }}" - user: "{{ app_name }}" - name: "{{ app_name }}" -current-context: "{{ app_name }}" -users: -- name: "{{ app_name }}" - user: - token: "{{ (['Basic', [key_public, key_private] | join(':') | b64encode] | join(' ')) | b64encode }}" - -- cgit 1.2.3-korg