-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenstack_database.yml
50 lines (44 loc) · 1.59 KB
/
openstack_database.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: HEAT stack generator
hosts: localhost
become: false
tasks:
- name: HEAT stack - floating IP
tags: always
block:
- name: HEAT template (file) - floating IP
template: src="{{ heat_stack_ip.src }}" dest="{{ heat_stack_ip.dest }}"
- name: HEAT template (API call) - floating IP
register: heat_ip_output
os_stack:
name: "{{ heat_stack_ip.name }}"
state: present
template: "{{ heat_stack_ip.dest }}"
wait: yes
parameters: "{{ heat_stack_ip.parameters }}"
- name: HEAT stack - persistant data
tags: always
block:
- name: HEAT template (file) - persistant data
template: src="{{ heat_stack_data.src }}" dest="{{ heat_stack_data.dest }}"
- name: HEAT template (API call) - persistant data
register: heat_data_output
os_stack:
name: "{{ heat_stack_data.name }}"
state: present
template: "{{ heat_stack_data.dest }}"
wait: yes
parameters: "{{ heat_stack_data.parameters }}"
- name: HEAT stack - compute
tags: db
block:
- name: HEAT template (file) - compute
template: src="{{ heat_stack_db.src }}" dest="{{ heat_stack_db.dest }}"
- name: HEAT template (API call) - compute
register: heat_db_output
os_stack:
name: "{{ heat_stack_db.name }}"
state: present
template: "{{ heat_stack_db.dest }}"
wait: yes
parameters: "{{ heat_stack_db.parameters }}