Use a variable for the namespace

This commit is contained in:
Flavio Percoco 2017-08-30 11:13:55 +02:00
parent d826dbc337
commit 5074693a34
3 changed files with 9 additions and 8 deletions

View File

@ -2,6 +2,7 @@ coe_host: "https://127.0.0.1:8443"
kube_context: "kubernetes-admin@kubernetes"
config_file: "~/.kube/config"
action: provision
namespace: openstack
hiera_data: {}
hiera_data_file: ''

View File

@ -4,7 +4,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance-db-sync
namespace: openstack
namespace: "{{namespace}}"
state: absent
- name: Delete glance deployment
@ -13,7 +13,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance-api
namespace: openstack
namespace: "{{namespace}}"
state: absent
- name: Delete glance service
@ -22,7 +22,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance
namespace: openstack
namespace: "{{namespace}}"
state: absent
- name: Delete glance configmaps
@ -32,6 +32,6 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance
namespace: openstack
namespace: "{{namespace}}"
state: absent
debug: yes

View File

@ -39,7 +39,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance
namespace: openstack
namespace: "{{namespace}}"
state: present
debug: yes
labels:
@ -82,7 +82,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance-db-sync
namespace: openstack
namespace: "{{namespace}}"
state: present
spec_template_metadata_annotations:
pod.beta.kubernetes.io/init-containers: '[
@ -127,7 +127,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance
namespace: openstack
namespace: "{{namespace}}"
state: present
ports:
- port: 9292
@ -141,7 +141,7 @@
context: "{{kube_context}}"
kubeconfig: "{{config_file}}"
name: glance-api
namespace: openstack
namespace: "{{namespace}}"
replicas: 1
spec_revision_history_limit: 3
spec_template_metadata_labels: