dma.yml
2.16 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
- name: Begin Deploy DMA - iChat
command: cp /tmp/application/{{ app_version }}/iChat-1.1.5.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
- name: Process Deploy DMA - serviceGateway
command: cp /tmp/application/{{ app_version }}/serviceGateway-3.6.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
- name: Process Deploy DMA - dmaManager
command: cp /tmp/application/{{ app_version }}/dmaManager-3.5.7.118.war /opt/stack/runtime/wildfly/standalone/deployments/.
- name: Process Deploy DMA - dmaEngine
command: cp /tmp/application/{{ app_version }}/dmaEngine-3.2.1.9.war /opt/stack/runtime/wildfly/standalone/deployments/.
- name: End Deploy DMA - ims
command: cp /tmp/application/{{ app_version }}/ims-1.0.6.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
- name: Begin Reconfigure Customer Environment - Update NginX DMA server name
copy: content="{{ dmaserverName }}" dest=/opt/stack/nginx/conf/dmadomain.conf
- name: Reconfigure Customer Environment - Update NginX WDCHAT server name
copy: content="{{ wdchatserverName }}" dest=/opt/stack/nginx/conf/wdchatdomain.conf
- name: Reconfigure Customer Environment - Update publish url
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -c "update wd_sys_config set sys_value = '{{ wdchatpublishURL }}' where sys_group ='system' and sys_key = 'publish_url'"
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Update application download url
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -c "update wd_sys_config set sys_value = '{{ updateURL }}' where sys_group ='appversion' and sys_key = 'update_url'"
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Reconfigure Customer Environment - Configure hostname
hostname: name={{ hostName }}
- name: Reconfigure Customer Environment - Configure /etc/hosts
lineinfile:
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: "{{ etcHost }}"
owner: root
group: root
mode: 0644
- name: Start DMA service
shell: /opt/stack/script/ctlscript.sh start