Commit 8911ce91 by ansible

Add Deves customer profile

1 parent dc11f435
Showing with 96 additions and 0 deletions
...@@ -539,3 +539,99 @@ ...@@ -539,3 +539,99 @@
- name: Deploy Customer iChatWeb.war - name: Deploy Customer iChatWeb.war
command: cp /tmp/default/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war command: cp /tmp/default/iChatWeb.war /opt/stack/runtime/wildfly/standalone/deployments/iChatWeb.war
- hosts: deves.prd
become: true
vars:
dmapublishURL: 'publishUrl = https://dvsmobile.beebuddy.net'
wdchatpublishURL: https://dvsmobile.beebuddy.net
updateURL: https://dvsmobile.beebuddy.net:444/index.html
dmaserverName: 'server_name dvsmobile.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: deves.dev
become: true
vars:
dmapublishURL: 'publishUrl = https://dvsmobiletest.beebuddy.net'
wdchatpublishURL: https://dvsmobiletest.beebuddy.net
updateURL: https://dvsmobiletest.beebuddy.net:444/index.html
dmaserverName: 'server_name dvsmobiletest.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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!