-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsite.yml
59 lines (56 loc) · 2.18 KB
/
site.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
---
# This playbook can install Red Hat Process Automation Manager in multiple flavours:
# 1. RHPAM Central (Business Central / Workbench).
- name: provision RHPAM Central
hosts: central
tasks:
- import_role:
name: rhpam-central
- import_role:
name: jboss-eap-service
vars:
jboss_eap_svc_home: "{{ jboss_eap_home }}"
post_tasks:
- debug:
msg:
- "Installation dir: {{ rhpam_central_root }}"
- "URL: http://{{ inventory_hostname }}:{{ jboss_http_port_number }}/business-central"
- "User admin username: {{ rhpam_central_admin_usr }}"
- "User admin password: {{ rhpam_central_admin_pwd }}"
- "SSH key: {{ openssh_keypair.public_key }}"
# 2. RHPAM Server (KIE Server) unmanaged or managed, via the 'org_kie_server_controller' variable.
- name: provision RHPAM Server
hosts: managed:unmanaged
tasks:
- import_role:
name: rhpam-server
- import_role:
name: jboss-eap-service
vars:
jboss_eap_svc_home: "{{ jboss_eap_home }}"
post_tasks:
- debug:
msg:
- "Installation dir: {{ rhpam_server_root }}"
- "URL: http://{{ inventory_hostname }}:{{ org_kie_server_http_port }}/kie-server/services/rest/server"
- "KIE Server users: {{ rhpam_server_users }}"
# 3. RHPAM Central and Server on the same host.
# The KIE Server is in managed mode and automatically connected to Central's contoller instance.
- name: provision RHPAM Central and RHPAM Server on the same host
hosts: hybrid
tasks:
- include_role:
name: rhpam-central
- include_role:
name: rhpam-server
vars:
jboss_socket_binding_port_offset_number: 100
org_kie_server_location: "http://localhost:8180/kie-server/services/rest/server"
post_tasks:
- debug:
msg:
- "Run Central: $RHPAM_CENTRAL_HOME/bin/standalone.sh -c standalone-full.xml"
- "Run Server: $RHPAM_SERVER_HOME/bin/standalone.sh -c standalone-full.xml"
- "Central URL: http://{{ inventory_hostname }}:8080/business-central"
- "Server URL: http://{{ inventory_hostname }}:8180/kie-server/services/rest/server"
tags: debug