-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsite.yml
63 lines (60 loc) · 2.36 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
60
61
62
63
---
# This playbook can install Red Hat Decision Manager in multiple flavours:
# 1. RHDM Central (Business Central / Workbench).
- name: provision RHDM Central
hosts: central
tasks:
- import_role:
name: rhdm-central
- import_role:
name: jboss-eap-service
vars:
jboss_eap_svc_home: "{{ jboss_eap_home }}"
post_tasks:
- debug:
msg:
- "Installation dir: {{ rhdm_central_root }}"
- "URL: http://{{ inventory_hostname }}:{{ jboss_http_port_number }}/decision-central"
- "User admin username: {{ rhdm_central_admin_usr }}"
- "User admin password: {{ rhdm_central_admin_pwd }}"
- "SSH key: {{ openssh_keypair.public_key }}"
# 2. RHDM Server (KIE Server) unmanaged or managed, via the 'org_kie_server_controller' variable.
- name: provision RHDM Server
hosts: managed:unmanaged
tasks:
- import_role:
name: rhdm-server
- import_role:
name: jboss-eap-service
vars:
jboss_eap_svc_home: "{{ jboss_eap_home }}"
post_tasks:
- debug:
msg:
- "Installation dir: {{ rhdm_server_root }}"
- "URL: http://{{ inventory_hostname }}:{{ org_kie_server_http_port }}/kie-server/services/rest/server"
- "User kieserver username: {{ rhdm_server_kieserver_usr }}"
- "User kieserver password: {{ rhdm_server_kieserver_pwd }}"
# 3. RHDM Central and Server on the same host.
# The KIE Server is in managed mode and automatically connected to Central's contoller instance.
- name: provision RHDM Central and RHDM Server on the same host
hosts: hybrid
tasks:
- include_role:
name: rhdm-central
vars:
jboss_socket_binding_port_offset_number: 0
- include_role:
name: rhdm-server
vars:
jboss_socket_binding_port_offset_number: 100
org_kie_server_controller: ws://localhost:8080/decision-central/websocket/controller
# org_kie_server_http_port: 8180 FIXME ends up as 8280
post_tasks:
- debug:
msg:
- "Run Central: $RHDM_CENTRAL_HOME/bin/standalone.sh -c standalone-full.xml"
- "Run Server: $RHDM_SERVER_HOME/bin/standalone.sh -c standalone-full.xml"
- "Central URL: http://{{ inventory_hostname }}:8080/decision-central"
- "Server URL: http://{{ inventory_hostname }}:8180/kie-server/services/rest/server"
tags: debug