Commit a1857380 by ansible

add "update publish url step" playbook in deploy_customer_configuration"

delete "update publish step" in deploy_initial_wdchat_postgresql"
1 parent 18da296d
......@@ -14,8 +14,11 @@
- hosts: blueprint
become: true
vars:
dmapublishURL: 'publishUrl = https://bpchat.beebuddy.net'
dmapublishURL: 'publishUrl = https://bpdma.beebuddy.net'
wdchatpublishURL: https://bpchat.beebuddy.net
updateURL: https://bpchat.beebuddy.net:444/index.html
dmaserverName: 'servername bpdma.beebuddy.net;'
wdchatserverName: 'servername bpchat.beebuddy.net;'
tasks:
- file:
path: /opt/stack/dma/conf/dmaconfig.properties
......@@ -23,9 +26,20 @@
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 publish_url
- 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'
\ No newline at end of file
......@@ -20,12 +20,6 @@
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Update WDCHAT SysConfig
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/4_Update.WDCHAT.SysConfig.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Create WDAUTHEN Table
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdauthen -d WDAUTHEN -f /tmp/configuration/5_Create.WDAUTHEN.Table.sql
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!