summaryrefslogtreecommitdiffstats
path: root/roles/openstack-stack/tasks/main.yml
blob: efee08c0e8d051345f96641cb9f87a4ab7092a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: create stack
  ignore_errors: False
  register: stack_create
  os_stack:
    name: "{{ stack_name }}"
    state: present
    template: 'roles/openstack-stack/files/heat_stack.yaml'
    wait: yes
    parameters:
      cluster_env: "{{ dns_domain }}"
      cluster_id: "{{ stack_name }}"
      subnet_24_prefix: "{{ subnet_prefix }}"
      dns_nameservers: "{{ dns_nameservers }}"
      external_net: "{{ external_network }}"
      ssh_public_key: "{{ ssh_public_key }}"
      num_etcd: "{{ num_etcd }}"
      num_masters: "{{ num_masters }}"
      num_nodes: "{{ num_nodes }}"
      num_infra: "{{ num_infra }}"
      num_dns: "{{ num_dns }}"
      etcd_image: "{{ openstack_image }}"
      master_image: "{{ openstack_image }}"
      node_image: "{{ openstack_image }}"
      infra_image: "{{ openstack_image }}"
      dns_image: "{{ openstack_image }}"
      etcd_flavor: "{{ etcd_flavor }}"
      master_flavor: "{{ master_flavor }}"
      node_flavor: "{{ node_flavor }}"
      infra_flavor: "{{ infra_flavor }}"
      dns_flavor: "{{ dns_flavor }}"
      master_volume_size: "{{ master_volume_size }}"
      app_volume_size: "{{ app_volume_size }}"
      infra_volume_size: "{{ infra_volume_size }}"