diff options
author | Tomas Sedovic <tomas@sedovic.cz> | 2017-06-02 14:06:52 +0200 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-06-14 16:38:32 +0200 |
commit | 7f60edeba48d78cd01669d20019e9bdacdf4e305 (patch) | |
tree | 5135c20938552653a39616d81a21a5f22b6b2ab5 /playbooks/provisioning/openstack/provision-openstack.yml | |
parent | 6241e33432ea88cf9c5bc67db6d09c90b2e891ba (diff) | |
download | openshift-7f60edeba48d78cd01669d20019e9bdacdf4e305.tar.gz openshift-7f60edeba48d78cd01669d20019e9bdacdf4e305.tar.bz2 openshift-7f60edeba48d78cd01669d20019e9bdacdf4e305.tar.xz openshift-7f60edeba48d78cd01669d20019e9bdacdf4e305.zip |
Move the openstack provisioning playbooks
They'll live in playbooks/provisioning/openstack from now on.
Diffstat (limited to 'playbooks/provisioning/openstack/provision-openstack.yml')
-rw-r--r-- | playbooks/provisioning/openstack/provision-openstack.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/provision-openstack.yml b/playbooks/provisioning/openstack/provision-openstack.yml new file mode 100644 index 000000000..8125548fd --- /dev/null +++ b/playbooks/provisioning/openstack/provision-openstack.yml @@ -0,0 +1,48 @@ +--- +- hosts: localhost + pre_tasks: + - include: roles/common/pre_tasks/pre_tasks.yml + roles: + - role: openstack-stack + stack_name: "{{ env_id }}.{{ public_dns_domain }}" + dns_domain: "{{ public_dns_domain }}" + dns_nameservers: "{{ public_dns_nameservers }}" + subnet_prefix: "{{ openstack_subnet_prefix }}" + ssh_public_key: "{{ openstack_ssh_public_key }}" + openstack_image: "{{ openstack_default_image_name }}" + lb_flavor: "{{ openstack_lb_flavor | default('m1.small') }}" + etcd_flavor: "{{ openstack_default_flavor }}" + master_flavor: "{{ openstack_default_flavor }}" + node_flavor: "{{ openstack_default_flavor }}" + infra_flavor: "{{ openstack_default_flavor }}" + dns_flavor: "{{ openstack_dns_flavor | default('m1.small') }}" + external_network: "{{ openstack_external_network_name }}" + num_etcd: 0 + num_masters: "{{ openstack_num_masters }}" + num_nodes: "{{ openstack_num_nodes }}" + num_infra: "{{ openstack_num_infra }}" + num_dns: "{{ openstack_num_dns | default(1) }}" + master_volume_size: "{{ docker_volume_size }}" + app_volume_size: "{{ docker_volume_size }}" + infra_volume_size: "{{ docker_volume_size }}" + + +- name: Refresh Server inventory + hosts: localhost + connection: local + gather_facts: False + tasks: + - meta: refresh_inventory + +- hosts: cluster_hosts + gather_facts: false + tasks: + - name: Debug hostvar + debug: + msg: "{{ hostvars[inventory_hostname] }}" + verbosity: 2 + - name: waiting for server to come back + local_action: wait_for host={{ hostvars[inventory_hostname]['ansible_ssh_host'] }} port=22 delay=30 timeout=300 + become: false + +- include: post-provision-openstack.yml |