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 4ac46abe
authored
Apr 26, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
c5a21c4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
25 deletions
roles/deploy/tasks/dma.yml
roles/deploy/tasks/wdchat.yml
roles/deploy/tasks/dma.yml
View file @
4ac46ab
-
name
:
Deploy
iChat
-
name
:
Begin Deploy DMA -
iChat
command
:
cp /tmp/application/{{ app_version }}/iChat-1.1.5.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/iChat-1.1.5.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy
serviceGateway
-
name
:
Process Deploy DMA -
serviceGateway
command
:
cp /tmp/application/{{ app_version }}/serviceGateway-3.6.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/serviceGateway-3.6.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy
dmaManager
-
name
:
Process Deploy DMA -
dmaManager
command
:
cp /tmp/application/{{ app_version }}/dmaManager-3.5.7.118.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/dmaManager-3.5.7.118.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy
dmaEngine
-
name
:
Process Deploy DMA -
dmaEngine
command
:
cp /tmp/application/{{ app_version }}/dmaEngine-3.2.1.9.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/dmaEngine-3.2.1.9.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy
ims
-
name
:
End Deploy DMA -
ims
command
:
cp /tmp/application/{{ app_version }}/ims-1.0.6.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/ims-1.0.6.0.war /opt/stack/runtime/wildfly/standalone/deployments/.
#- name: Deploy jsb
# command: cp /tmp/application/{{ app_version }}/jsb* /opt/stack/admin/wildfly/standalone/deployments/.
-
name
:
Begin Reconfigure Customer Environment
#- name: Deploy iConsole
vars
:
# command: cp /tmp/application/{{ app_version }}/iConsole-* /opt/stack/admin/wildfly/standalone/deployments/.
dmapublishURL
:
'
publishUrl
=
https://{{
app_fqdn
}}'
wdchatpublishURL
:
https://{{ app_fqdn }}
updateURL
:
https://{{ app_fqdn }}:444/index.html
dmaserverName
:
'
server_name
{{
app_fqdn
}};'
wdchatserverName
:
'
server_name
{{
app_fqdn
}};'
hostName
:
wdchat
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
wdchat'
-
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
\ No newline at end of file
roles/deploy/tasks/wdchat.yml
View file @
4ac46ab
-
name
:
Deploy
iChat
-
name
:
Begin Deploy WDCHAT -
iChat
command
:
cp /tmp/application/{{ app_version }}/iChat-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/iChat-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy serviceGateway
-
name
:
Deploy
WDCHAT -
serviceGateway
command
:
cp /tmp/application/{{ app_version }}/serviceGateway-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/serviceGateway-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy dmaManager
-
name
:
Deploy
WDCAT -
dmaManager
command
:
cp /tmp/application/{{ app_version }}/dmaManager-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/dmaManager-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy dmaEngine
-
name
:
Deploy
WDCAT -
dmaEngine
command
:
cp /tmp/application/{{ app_version }}/dmaEngine-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/dmaEngine-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy ims
-
name
:
Deploy WDCAT - ExAuthenWS
command
:
cp /tmp/application/{{ app_version }}/ims-*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy jsb
command
:
cp /tmp/application/{{ app_version }}/jsb*.war /opt/stack/admin/wildfly/standalone/deployments/.
-
name
:
Deploy ExAuthenWS
command
:
cp /tmp/application/{{ app_version }}/ExAuthenWS*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/ExAuthenWS*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy iAuthen
-
name
:
Deploy
WDCAT -
iAuthen
command
:
cp /tmp/application/{{ app_version }}/iAuthen*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/iAuthen*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy iChatGateway
-
name
:
Deploy
WDCAT -
iChatGateway
command
:
cp /tmp/application/{{ app_version }}/iChatGateway*.war /opt/stack/runtime/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/iChatGateway*.war /opt/stack/runtime/wildfly/standalone/deployments/.
-
name
:
Deploy iChatManagement
-
name
:
Deploy
WDCAT -
iChatManagement
command
:
cp /tmp/application/{{ app_version }}/iChatManagement*.war /opt/stack/admin/wildfly/standalone/deployments/.
command
:
cp /tmp/application/{{ app_version }}/iChatManagement*.war /opt/stack/admin/wildfly/standalone/deployments/.
-
name
:
Deploy iConsole
command
:
cp /tmp/application/{{ app_version }}/iConsole-*.war /opt/stack/admin/wildfly/standalone/deployments/.
-
name
:
Begin Reconfigure Customer Environment
vars
:
dmapublishURL
:
'
publishUrl
=
https://{{
app_fqdn
}}'
wdchatpublishURL
:
https://{{ app_fqdn }}
updateURL
:
https://{{ app_fqdn }}:444/index.html
dmaserverName
:
'
server_name
{{
app_fqdn
}};'
wdchatserverName
:
'
server_name
{{
app_fqdn
}};'
hostName
:
wdchat
etcHost
:
'
127.0.0.1
wdchatgateway
localhost
wdchatengine
wdchat'
-
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
\ No newline at end of file
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