-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployAll.yml
76 lines (60 loc) · 1.57 KB
/
deployAll.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
#Author: Saed Alavinia
#Email: [email protected]
#Github: github.com/saedalav
- name: Deploy CloudFormation Template for Configuring Pivotal Cloud Foundry on AWS.
hosts: localhost
connection: local
roles:
- cloudformation
- name: Deploying Ops Manager and Configuring Security.
hosts: localhost
connection: local
roles:
- opsmanagerdeploy
- name: Configuring Operations Manager Director
hosts: localhost
connection: local
roles:
- directorConfig
- name: Getting the IP Address of Ops Manager
hosts: localhost
connection: local
tasks:
- ec2_remote_facts:
region: us-east-1
filters:
instance-state-name: running
"tag:Name": Ops Manager
register: ec2_remote_facts
- name: Add box
add_host:
hostname: "{{ item.public_ip_address }}"
groups: opsman
with_items: "{{ ec2_remote_facts.instances }}"
- name: Attempting to SSH to Opsman
hosts: opsman
remote_user: ubuntu
become: true
roles:
- modifyserver
- name: Installing Director
hosts: localhost
connection: local
roles:
- directorInstall
- name: Upload Elastic Runtime
hosts: localhost
connection: local
roles:
- elasticruntimeupload
- name: Deploy CloudFormation Template for Configuring Pivotal Cloud Foundry on AWS.
hosts: localhost
connection: local
roles:
- elasticruntimeconfig
- name: Configure PCF with an Admin Username and Pass that can push
hosts: localhost
connection: local
roles:
- createpushuser