Rename/Update coe_* variables

This commit is contained in:
Flavio Percoco 2017-10-19 11:04:24 +02:00
parent 5399b986fc
commit dd2d97041b
4 changed files with 19 additions and 24 deletions

View File

@ -16,9 +16,9 @@ Role Variables
| Name | Default Value | Description | | Name | Default Value | Description |
|-------------------|---------------------|----------------------| |-------------------|---------------------|----------------------|
| `action` | `provision` | List of tasks to run. | | `action` | `provision` | List of tasks to run. |
| `core_host` | `https://rhev-i32c-03.mpc.lab.eng.bos.redhat.com:6443` | | | `coe_host` | | |
| `kube_context` | `kubernetes-admin@kubernetes` | | | `coe_config_context` | | |
| `config_file` | `/root/.kube/config` | | | `coe_config_file` | | |
Dependencies Dependencies
@ -32,8 +32,3 @@ Example Playbook
- hosts: all - hosts: all
roles: roles:
- tripleo.k8s-glance - tripleo.k8s-glance
License
-------
Apache License v2

View File

@ -1,6 +1,6 @@
coe_host: "https://127.0.0.1:8443" coe_host:
kube_context: "kubernetes-admin@kubernetes" coe_config_context:
config_file: "~/.kube/config" coe_config_file:
action: provision action: provision
service_name: glance service_name: glance

View File

@ -1,7 +1,7 @@
- name: Delete glance db-sync job - name: Delete glance db-sync job
k8s_v1_job: k8s_v1_job:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{config_file}}"
name: glance-db-sync name: glance-db-sync
namespace: "{{namespace}}" namespace: "{{namespace}}"
@ -10,7 +10,7 @@
- name: Delete glance deployment - name: Delete glance deployment
k8s_v1beta1_deployment: k8s_v1beta1_deployment:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{config_file}}"
name: glance-api name: glance-api
namespace: "{{namespace}}" namespace: "{{namespace}}"
@ -19,7 +19,7 @@
- name: Delete glance service - name: Delete glance service
k8s_v1_service: k8s_v1_service:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{config_file}}"
name: glance name: glance
namespace: "{{namespace}}" namespace: "{{namespace}}"
@ -29,8 +29,8 @@
ignore_errors: yes ignore_errors: yes
k8s_v1_config_map: k8s_v1_config_map:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{coe_config_file}}"
name: glance name: glance
namespace: "{{namespace}}" namespace: "{{namespace}}"
state: absent state: absent

View File

@ -36,8 +36,8 @@
ignore_errors: yes ignore_errors: yes
k8s_v1_config_map: k8s_v1_config_map:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{coe_config_file}}"
name: glance name: glance
namespace: "{{namespace}}" namespace: "{{namespace}}"
state: present state: present
@ -87,8 +87,8 @@
- name: Create glance db-sync job - name: Create glance db-sync job
k8s_v1_job: k8s_v1_job:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{coe_config_file}}"
name: glance-db-sync name: glance-db-sync
namespace: "{{namespace}}" namespace: "{{namespace}}"
state: present state: present
@ -113,8 +113,8 @@
- name: Create glance service - name: Create glance service
k8s_v1_service: k8s_v1_service:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{coe_config_file}}"
name: glance name: glance
namespace: "{{namespace}}" namespace: "{{namespace}}"
state: present state: present
@ -127,8 +127,8 @@
- name: Create glance deployment - name: Create glance deployment
k8s_v1beta1_deployment: k8s_v1beta1_deployment:
host: "{{coe_host}}" host: "{{coe_host}}"
context: "{{kube_context}}" context: "{{coe_config_context}}"
kubeconfig: "{{config_file}}" kubeconfig: "{{coe_config_file}}"
name: glance-api name: glance-api
namespace: "{{namespace}}" namespace: "{{namespace}}"
replicas: 1 replicas: 1