-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathfrstack.yml
More file actions
47 lines (43 loc) · 1.91 KB
/
frstack.yml
File metadata and controls
47 lines (43 loc) · 1.91 KB
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
---
# Install the ForgeRock stack
# Before this is run it is assumed some basic pre-reqs have been completed:
#
# - The software zip files must be available to the guest. They are
# assumed to be in the ${download_dir}. The previous play should set this
# up for the environment
# - Appropriate Firewall ports must be open on the guest. We use haproxy to put most things through 80/443
# - The "fr" ForgeRock user must be created with sudo priv. The vagrant.yml does this
# Tasks to complete with sudo privs
- remote_user: fr
sudo: yes
hosts: ois
vars_files:
- "vars/{{release}}.yml"
roles:
- { role: common, tags: ["common"]}
- { role: base-apache, tags: ["http"]}
- { role: haproxy, tags: ["http"]}
- { role: tomcat, tomcat_instance: 'tomcat-openam', tomcat_http_port: 8080,
tomcat_https_port: 8443, tomcat_server_port: 8005, tags: ["tomcat"]}
- { role: tomcat, tomcat_instance: 'tomcat-apps', tomcat_http_port: 18080,
tomcat_https_port: 18443, tomcat_server_port: 18005, tags: ["tomcat"]}
- { role: tomcat, tomcat_instance: 'tomcat-openig', tomcat_http_port: 28080,
tomcat_https_port: 28443, tomcat_server_port: 28005, tags: ["tomcat", "openig"]}
- { role: opendj, tags: ["opendj","ois"]}
- { role: openidm, tags: ["openidm","ois"]}
# Plays to run as normal fr user
- remote_user: fr
hosts: ois
vars_files:
- "vars/{{release}}.yml"
roles:
- { role: openam, tomcat_dir: '{{ install_root}}/tomcat-openam', tags: ["openam","ois"]}
- { role: agent-tomcat, tomcat_instance: 'tomcat-openig', tomcat_http_port: 28080, tags: ["agent","openig"] }
- { role: agent-tomcat, tomcat_instance: 'tomcat-apps', tomcat_http_port: 18080, tags: ["agent"] }
- { role: openig, tomcat_instance: 'tomcat-openig', tags: ["openig"] }
# Apache agent needs to sudo for
- remote_user: fr
sudo: yes
hosts: ois
roles:
- { role: agent-apache, tags: ["agent","agent-apache"] }