Commit 0a6a61cf by ansible

no message

1 parent 96998c34
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
updateURL: https://tipsocial.dhipaya.co.th:444/index.html updateURL: https://tipsocial.dhipaya.co.th:444/index.html
dmaserverName: 'server_name tipeasy.dhipaya.co.th;' dmaserverName: 'server_name tipeasy.dhipaya.co.th;'
wdchatserverName: 'server_name tipsocial.dhipaya.co.th;' wdchatserverName: 'server_name tipsocial.dhipaya.co.th;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks: tasks:
- file: - file:
path: /opt/stack/dma/conf/dmaconfig.properties path: /opt/stack/dma/conf/dmaconfig.properties
...@@ -32,12 +34,27 @@ ...@@ -32,12 +34,27 @@
responses: responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte' 'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Configure hostname
hostname: name={{ hostName }}
- name: Configure /etc/hosts
lineinfile:
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: "{{ etcHost }}"
owner: root
group: root
mode: 0644
- name: Update Customer WDCHAT Theme - name: Update Customer WDCHAT Theme
expect: expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/tipsocial/wdchat_theme.sql command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/tipsocial/wdchat_theme.sql
responses: responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte' 'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Deploy Customer iChatWeb.war
command: cp /tmp/tipsocial/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- hosts: dhipaya-dev - hosts: dhipaya-dev
become: true become: true
vars: vars:
...@@ -45,7 +62,10 @@ ...@@ -45,7 +62,10 @@
wdchatpublishURL: https://tipsocialdev.dhipaya.co.th wdchatpublishURL: https://tipsocialdev.dhipaya.co.th
updateURL: https://tipsocialdev.dhipaya.co.th:444/index.html updateURL: https://tipsocialdev.dhipaya.co.th:444/index.html
dmaserverName: 'server_name tipeasydev.dhipaya.co.th;' dmaserverName: 'server_name tipeasydev.dhipaya.co.th;'
wdchatserverName: '' wdchatserverName: 'server_name ;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks: tasks:
- file: - file:
path: /opt/stack/dma/conf/dmaconfig.properties path: /opt/stack/dma/conf/dmaconfig.properties
...@@ -71,6 +91,18 @@ ...@@ -71,6 +91,18 @@
responses: responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte' 'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Configure hostname
hostname: name={{ hostName }}
- name: Configure /etc/hosts
lineinfile:
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: "{{ etcHost }}"
owner: root
group: root
mode: 0644
- hosts: blueprint - hosts: blueprint
become: true become: true
vars: vars:
...@@ -118,6 +150,15 @@ ...@@ -118,6 +150,15 @@
group: root group: root
mode: 0644 mode: 0644
- name: Update Theme
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/blueprint/wdchat_theme.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Deploy Customer iChatWeb.war
command: cp /tmp/blueprint/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- hosts: beebuddy - hosts: beebuddy
become: true become: true
...@@ -166,14 +207,23 @@ ...@@ -166,14 +207,23 @@
group: root group: root
mode: 0644 mode: 0644
- hosts: chatapi - name: Update Theme
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/beebuddy/wdchat_theme.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Deploy Customer iChatWeb.war
command: cp /tmp/beebuddy/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- hosts: ptychat
become: true become: true
vars: vars:
dmapublishURL: 'publishUrl = https://chatapi.beebuddy.net' dmapublishURL: 'publishUrl = https://'
wdchatpublishURL: https://chatchat.beebuddy.net wdchatpublishURL: https://pty-chat.partsoto.net
updateURL: https://chatchat.beebuddy.net:444/index.html updateURL: https://pty-chat.partsoto.net:444/index.html
dmaserverName: 'server_name chatapi.beebuddy.net;' dmaserverName: 'server_name ;'
wdchatserverName: 'server_name chatchat.beebuddy.net;' wdchatserverName: 'server_name pty-chat.partsoto.net;'
hostName: wdchat hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat' etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks: tasks:
...@@ -213,13 +263,22 @@ ...@@ -213,13 +263,22 @@
group: root group: root
mode: 0644 mode: 0644
- name: Update Theme
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/ptychat/wdchat_theme.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Deploy Customer iChatWeb.war
command: cp /tmp/ptychat/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- hosts: scgchat - hosts: scgchat
become: true become: true
vars: vars:
dmapublishURL: 'publishUrl = https://scgdma.beebuddy.net' dmapublishURL: 'publishUrl = https://;'
wdchatpublishURL: https://scgchat.beebuddy.net wdchatpublishURL: https://scgchat.beebuddy.net
updateURL: https://scgchat.beebuddy.net:444/index.html updateURL: https://scgchat.beebuddy.net:444/index.html
dmaserverName: 'server_name scgdma.beebuddy.net;' dmaserverName: 'server_name ;'
wdchatserverName: 'server_name scgchat.beebuddy.net;' wdchatserverName: 'server_name scgchat.beebuddy.net;'
hostName: wdchat hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat' etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
...@@ -248,12 +307,6 @@ ...@@ -248,12 +307,6 @@
responses: responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte' 'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Update Theme
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/scgchat/scg_wdchat_theme.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Configure hostname - name: Configure hostname
hostname: name={{ hostName }} hostname: name={{ hostName }}
...@@ -266,4 +319,13 @@ ...@@ -266,4 +319,13 @@
group: root group: root
mode: 0644 mode: 0644
- name: Update Theme
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/scgchat/wdchat_theme.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Deploy Customer iChatWeb.war
command: cp /tmp/scgchat/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war
- name: Deploy iChatManagement-1.1.1.war - name: Deploy iChatManagement-1.1.1.war
command: cp /tmp/application/iChatManagement-1.1.1.war /opt/stack/admin/wildfly/standalone/deployments/iChatManagement-1.1.1.war command: cp /tmp/application/iChatManagement-1.1.1.war /opt/stack/admin/wildfly/standalone/deployments/iChatManagement-1.1.1.war
- name: Deploy iChatWeb.war
command: cp /tmp/application/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- name: Deploy iConsole.war - name: Deploy iConsole.war
command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- name: Deploy serviceGateway-1.5.1.RELEASE.war - name: Deploy serviceGateway-1.5.1.RELEASE.war
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war
- name: Deploy iChatManagement-1.1.1.war - name: Deploy iChatManagement-1.1.1.war
command: cp /tmp/application/iChatManagement-1.1.1.war /opt/stack/admin/wildfly/standalone/deployments/iChatManagement-1.1.1.war command: cp /tmp/application/iChatManagement-1.1.1.war /opt/stack/admin/wildfly/standalone/deployments/iChatManagement-1.1.1.war
- name: Deploy iChatWeb.war
command: cp /tmp/application/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- name: Deploy iConsole.war - name: Deploy iConsole.war
command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!