Commit 0a6a61cf by ansible

no message

1 parent 96998c34
......@@ -7,6 +7,8 @@
updateURL: https://tipsocial.dhipaya.co.th:444/index.html
dmaserverName: 'server_name tipeasy.dhipaya.co.th;'
wdchatserverName: 'server_name tipsocial.dhipaya.co.th;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
......@@ -32,12 +34,27 @@
responses:
'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
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
responses:
'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
become: true
vars:
......@@ -45,7 +62,10 @@
wdchatpublishURL: https://tipsocialdev.dhipaya.co.th
updateURL: https://tipsocialdev.dhipaya.co.th:444/index.html
dmaserverName: 'server_name tipeasydev.dhipaya.co.th;'
wdchatserverName: ''
wdchatserverName: 'server_name ;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
......@@ -71,6 +91,18 @@
responses:
'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
become: true
vars:
......@@ -118,6 +150,15 @@
group: root
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
become: true
......@@ -166,14 +207,23 @@
group: root
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
vars:
dmapublishURL: 'publishUrl = https://chatapi.beebuddy.net'
wdchatpublishURL: https://chatchat.beebuddy.net
updateURL: https://chatchat.beebuddy.net:444/index.html
dmaserverName: 'server_name chatapi.beebuddy.net;'
wdchatserverName: 'server_name chatchat.beebuddy.net;'
dmapublishURL: 'publishUrl = https://'
wdchatpublishURL: https://pty-chat.partsoto.net
updateURL: https://pty-chat.partsoto.net:444/index.html
dmaserverName: 'server_name ;'
wdchatserverName: 'server_name pty-chat.partsoto.net;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
tasks:
......@@ -213,13 +263,22 @@
group: root
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
become: true
vars:
dmapublishURL: 'publishUrl = https://scgdma.beebuddy.net'
dmapublishURL: 'publishUrl = https://;'
wdchatpublishURL: https://scgchat.beebuddy.net
updateURL: https://scgchat.beebuddy.net:444/index.html
dmaserverName: 'server_name scgdma.beebuddy.net;'
dmaserverName: 'server_name ;'
wdchatserverName: 'server_name scgchat.beebuddy.net;'
hostName: wdchat
etcHost: '127.0.0.1 wdchatgateway localhost wdchatengine wdchat'
......@@ -248,12 +307,6 @@
responses:
'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
hostname: name={{ hostName }}
......@@ -266,4 +319,13 @@
group: root
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 @@
command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.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
- name: Deploy iChatWeb.war
command: cp /tmp/application/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- name: Deploy iConsole.war
command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- name: Deploy serviceGateway-1.5.1.RELEASE.war
......
......@@ -12,8 +12,6 @@
command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.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
- name: Deploy iChatWeb.war
command: cp /tmp/application/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- name: Deploy 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!