Skip to content
Snippets Groups Projects
Unverified Commit 5903aea8 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Update coreos-calico-aio scenario to test no group vars (#2314)

This updated scenario ensures deployment still passes without
having any group_vars available.
parent f4a68eae
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -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 @@ ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment