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 735fb1a3
authored
Dec 25, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add host "dmadev" and "dmasit" configuration
1 parent
ebf95a64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
0 deletions
deploy_customer_configuration.yml
deploy_customer_configuration.yml
View file @
735fb1a
...
@@ -330,5 +330,101 @@
...
@@ -330,5 +330,101 @@
-
name
:
Deploy Customer iChatGateway.war
-
name
:
Deploy Customer iChatGateway.war
command
:
cp /tmp/scgchat/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war
command
:
cp /tmp/scgchat/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war
-
hosts
:
dmadev
become
:
true
vars
:
dmapublishURL
:
'
publishUrl
=
https://dma.beebuddy.net'
wdchatpublishURL
:
https://dma.beebuddy.net
updateURL
:
https://dma.beebuddy.net:444/index.html
dmaserverName
:
'
server_name
dma.beebuddy.net;'
wdchatserverName
:
'
server_name
;'
hostName
:
wdchat
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
wdchat'
tasks
:
-
file
:
path
:
/opt/stack/dma/conf/dmaconfig.properties
state
:
touch
mode
:
0644
-
name
:
Update DMA publish URL
copy
:
content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties
-
name
:
Update NginX DMA server name
copy
:
content="{{ dmaserverName }}" dest=/opt/stack/nginx/conf/dmadomain.conf
-
name
:
Update NginX WDCHAT server name
copy
:
content="{{ wdchatserverName }}" dest=/opt/stack/nginx/conf/wdchatdomain.conf
-
name
:
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
:
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
:
dmasit
become
:
true
vars
:
dmapublishURL
:
'
publishUrl
=
https://dmasit.beebuddy.net'
wdchatpublishURL
:
https://dmasit.beebuddy.net
updateURL
:
https://dmasit.beebuddy.net:444/index.html
dmaserverName
:
'
server_name
dmasit.beebuddy.net;'
wdchatserverName
:
'
server_name
;'
hostName
:
wdchat
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
wdchat'
tasks
:
-
file
:
path
:
/opt/stack/dma/conf/dmaconfig.properties
state
:
touch
mode
:
0644
-
name
:
Update DMA publish URL
copy
:
content="{{ dmapublishURL }}" dest=/opt/stack/dma/conf/dmaconfig.properties
-
name
:
Update NginX DMA server name
copy
:
content="{{ dmaserverName }}" dest=/opt/stack/nginx/conf/dmadomain.conf
-
name
:
Update NginX WDCHAT server name
copy
:
content="{{ wdchatserverName }}" dest=/opt/stack/nginx/conf/wdchatdomain.conf
-
name
:
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
:
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
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