diff options
author | Lénaïc Huard <lhuard@amadeus.com> | 2015-04-20 14:11:48 +0200 |
---|---|---|
committer | Lénaïc Huard <lhuard@amadeus.com> | 2015-06-08 08:08:52 +0200 |
commit | 901f0ee491efb34f9788e11dd6d572928146da91 (patch) | |
tree | d058cf07ec8efa46d9d8c35144baadc9c5d7bc41 /playbooks/openstack/openshift-cluster/config.yml | |
parent | af8b0b25f5e572ab20e3c3efdba596bae7ae7563 (diff) | |
download | openshift-901f0ee491efb34f9788e11dd6d572928146da91.tar.gz openshift-901f0ee491efb34f9788e11dd6d572928146da91.tar.bz2 openshift-901f0ee491efb34f9788e11dd6d572928146da91.tar.xz openshift-901f0ee491efb34f9788e11dd6d572928146da91.zip |
Implement OpenStack provider
Diffstat (limited to 'playbooks/openstack/openshift-cluster/config.yml')
-rw-r--r-- | playbooks/openstack/openshift-cluster/config.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/playbooks/openstack/openshift-cluster/config.yml b/playbooks/openstack/openshift-cluster/config.yml new file mode 100644 index 000000000..1c0644e04 --- /dev/null +++ b/playbooks/openstack/openshift-cluster/config.yml @@ -0,0 +1,34 @@ +- name: Populate oo_masters_to_config host group + hosts: localhost + gather_facts: no + vars_files: + - vars.yml + tasks: + - name: Evaluate oo_masters_to_config + add_host: + name: "{{ item }}" + ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}" + ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}" + groups: oo_masters_to_config + with_items: groups["tag_env-host-type_{{ cluster_id }}-openshift-master"] | default([]) + - name: Evaluate oo_nodes_to_config + add_host: + name: "{{ item }}" + ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}" + ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}" + groups: oo_nodes_to_config + with_items: groups["tag_env-host-type_{{ cluster_id }}-openshift-node"] | default([]) + - name: Evaluate oo_first_master + add_host: + name: "{{ groups['tag_env-host-type_' ~ cluster_id ~ '-openshift-master'][0] }}" + ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}" + ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}" + groups: oo_first_master + when: "'tag_env-host-type_{{ cluster_id }}-openshift-master' in groups" + +- include: ../../common/openshift-cluster/config.yml + vars: + openshift_cluster_id: "{{ cluster_id }}" + openshift_debug_level: 4 + openshift_deployment_type: "{{ deployment_type }}" + openshift_hostname: "{{ ansible_default_ipv4.address }}" |