Update coreos-calico-aio scenario to test no group vars (#2314)
This updated scenario ensures deployment still passes without having any group_vars available.
This commit is contained in:
parent
f4a68eae01
commit
5903aea86f
2 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
mode: default
|
mode: default
|
||||||
preemptible: no
|
preemptible: no
|
||||||
ci_job_name: "{{ lookup('env', 'CI_JOB_NAME') }}"
|
ci_job_name: "{{ lookup('env', 'CI_JOB_NAME') }}"
|
||||||
|
delete_group_vars: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: include vars for test {{ ci_job_name }}
|
- name: include vars for test {{ ci_job_name }}
|
||||||
include_vars: "../files/{{ ci_job_name }}.yml"
|
include_vars: "../files/{{ ci_job_name }}.yml"
|
||||||
|
@ -64,6 +65,13 @@
|
||||||
dest: "{{ inventory_path|dirname }}/group_vars/fake_hosts.yml"
|
dest: "{{ inventory_path|dirname }}/group_vars/fake_hosts.yml"
|
||||||
when: mode in ['scale', 'separate-scale', 'ha-scale']
|
when: mode in ['scale', 'separate-scale', 'ha-scale']
|
||||||
|
|
||||||
|
- name: Delete group_vars directory
|
||||||
|
file:
|
||||||
|
path: "{{ inventory_path|dirname }}/group_vars"
|
||||||
|
state: absent
|
||||||
|
recurse: yes
|
||||||
|
when: delete_group_vars
|
||||||
|
|
||||||
- name: Wait for instances
|
- name: Wait for instances
|
||||||
hosts: "waitfor_hosts"
|
hosts: "waitfor_hosts"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -7,6 +7,7 @@ mode: aio
|
||||||
startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd'
|
startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd'
|
||||||
|
|
||||||
# Deployment settings
|
# Deployment settings
|
||||||
|
no_group_vars: true
|
||||||
bootstrap_os: coreos
|
bootstrap_os: coreos
|
||||||
kube_network_plugin: calico
|
kube_network_plugin: calico
|
||||||
resolvconf_mode: host_resolvconf # this is required as long as the coreos stable channel uses docker < 1.12
|
resolvconf_mode: host_resolvconf # this is required as long as the coreos stable channel uses docker < 1.12
|
||||||
|
|
Loading…
Reference in a new issue