Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
dma-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a6a61cf
authored
Dec 07, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
96998c34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
20 deletions
deploy_customer_configuration.yml
deploy_dma_application.yml
deploy_wdchat_application.yml
deploy_customer_configuration.yml
View file @
0a6a61c
...
...
@@ -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,11 +34,26 @@
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
...
...
@@ -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
...
...
@@ -70,7 +90,19 @@
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
:
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
:
...
...
@@ -117,6 +149,15 @@
owner
:
root
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
...
...
@@ -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
:
...
...
@@ -212,14 +262,23 @@
owner
:
root
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 }}
...
...
@@ -265,5 +318,14 @@
owner
:
root
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
deploy_dma_application.yml
View file @
0a6a61c
...
...
@@ -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
...
...
deploy_wdchat_application.yml
View file @
0a6a61c
...
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment