-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy-cloudstack.yaml
42 lines (38 loc) · 1.06 KB
/
deploy-cloudstack.yaml
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
---
- name: Generating in-memory inventory
hosts: localhost
tasks:
- import_tasks: tasks/generate_inventory.yaml
- name: "Building CloudStack {{ cs_version }}"
hosts: cloudstack_management
become_method: sudo
roles:
- build-cloudstack
- name: "Installing CloudStack repository"
hosts: environment_hosts
become_method: sudo
roles:
- add-cloudstack-repository
- name: "Installing CloudStack management node"
hosts: cloudstack_management
become_method: sudo
roles:
- cloudstack-management
- name: Installing CloudStack hosts
hosts: cluster_a1,cluster_a2,cluster_b1
become_method: sudo
roles:
- cloudstack-kvm-hypervisor
post_tasks:
- name: Retrieving API Key
run_once: yes
include_role:
name: cloudstack-management
apply:
delegate_to: "{{ groups['cloudstack_management'][0] }}"
tasks_from: retrieve-api-keys.yaml
- name: Adding hosts to respective Clusters
run_once: yes
delegate_to: localhost
delegate_facts: yes
import_tasks: tasks/add_hosts_to_clusters.yml