add basic azure support for kargo

This commit is contained in:
Sebastian Melchior
2016-11-29 10:20:28 +01:00
parent 5b382668f5
commit bb55f68f95
8 changed files with 145 additions and 8 deletions

View File

@@ -60,12 +60,15 @@
- name: check cloud_provider value
fail:
msg: "If set the 'cloud_provider' var must be set either to 'generic', 'gce', 'aws' or 'openstack'"
when: cloud_provider is defined and cloud_provider not in ['generic', 'gce', 'aws', 'openstack']
msg: "If set the 'cloud_provider' var must be set either to 'generic', 'gce', 'aws', 'azure' or 'openstack'"
when: cloud_provider is defined and cloud_provider not in ['generic', 'gce', 'aws', 'openstack', 'azure']
- include: openstack-credential-check.yml
when: cloud_provider is defined and cloud_provider == 'openstack'
- include: azure-credential-check.yml
when: cloud_provider is defined and cloud_provider == 'azure'
- name: Create cni directories
file:
path: "{{ item }}"
@@ -130,4 +133,12 @@
mode: 0640
when: cloud_provider is defined and cloud_provider == "openstack"
- name: Write azure cloud-config
template:
src: azure-cloud-config.j2
dest: "{{ kube_config_dir }}/cloud_config"
group: "{{ kube_cert_group }}"
mode: 0640
when: cloud_provider is defined and cloud_provider == "azure"
- include: etchosts.yml