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 dc8fd59e
authored
Apr 25, 2018
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
e03686ff
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
69 additions
and
58 deletions
roles/initial/tasks/deploy_initial_mongo_data.yml
roles/initial/tasks/initial_data_dma.yml
roles/initial/tasks/initial_data_wdchat.yml
roles/initial/tasks/initial_user_db_dma.yml
roles/initial/tasks/initial_user_db_wdchat.yml
roles/initial/tasks/main.yml
roles/initial/tasks/update_data_dma_3.0.2.yml
roles/initial/tasks/update_data_dma_3.0.5.yml
roles/initial/tasks/update_data_dma_3.0.6.yml
roles/initial/tasks/update_data_dma_3.1.4.yml
roles/initial/tasks/update_data_dma_3.2.1.yml
roles/initial/tasks/update_data_dma_3.4.2.yml
roles/initial/tasks/deploy_initial_mongo_data.yml
deleted
100644 → 0
View file @
e03686f
---
-
hosts
:
06_deploy-dma-mongo-302
become
:
true
tasks
:
-
name
:
Insert Initial Data for DMAMANAGER 7018
command
:
/tmp/configuration/update_dmamanager.sh
-
name
:
Insert Initial Data for SERVICEGATEWAY 7019
command
:
/tmp/configuration/update_servicegateway.sh
-
hosts
:
06_deploy-dma-mongo-305
become
:
true
tasks
:
-
name
:
Insert Initial Data for DMAMANAGER 7018
command
:
/tmp/configuration/update_dmamanager_305.sh
-
name
:
Insert Initial Data for SERVICEGATEWAY 7019
command
:
/tmp/configuration/update_servicegateway_313.sh
-
hosts
:
06_deploy-dma-mongo-306
become
:
true
tasks
:
-
name
:
Insert Initial Data for DMAMANAGER 7018
command
:
/tmp/configuration/update_dmamanager_306.sh
-
name
:
Insert Initial Data for SERVICEGATEWAY 7019
command
:
/tmp/configuration/update_servicegateway_313.sh
-
hosts
:
06_deploy-dma-mongo-314
become
:
true
tasks
:
-
name
:
Insert Initial Data for DMAMANAGER 7018
command
:
/tmp/configuration/update_dmamanager_314.sh
-
name
:
Insert Initial Data for SERVICEGATEWAY 7019
command
:
/tmp/configuration/update_servicegateway_313.sh
roles/initial/tasks/initial_data_dma.yml
View file @
dc8fd59
-
name
:
Create Database WDCHAT DB & USER
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0_Create.User.sql
responses
:
'
Password
for
user
postgres'
:
'
password'
-
name
:
Create Tables in WDCHAT DB
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/1_Create.WDCHAT.Table.sql
...
...
roles/initial/tasks/initial_data_wdchat.yml
View file @
dc8fd59
-
name
:
Create WDCHAT DB, WDAUTHEN DB and USER
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0_Create.User.sql
responses
:
'
Password
for
user
postgres'
:
'
password'
-
name
:
Create WDCHAT Table
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/1_Create.WDCHAT.Table.sql
...
...
roles/initial/tasks/initial_user_db_dma.yml
View file @
dc8fd59
-
name
:
Create user & db named WDCHAT on mongodb-7017
shell
:
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017 < /tmp/source/wdchat.js
-
name
:
Create user & db named DMAMANAGER on mongodb1-7018
command
:
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018
/tmp/source/dmamanager.js
shell
:
/opt/stack/mongodb/mongodb1/bin/mongo --host 127.0.0.1 --port 7018 <
/tmp/source/dmamanager.js
-
name
:
Create user & db named SERVICEGATEWAY on mongodb2-7019
command
:
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019
/tmp/source/servicegateway.js
shell
:
/opt/stack/mongodb/mongodb2/bin/mongo --host 127.0.0.1 --port 7019 <
/tmp/source/servicegateway.js
-
name
:
Create user & db named WDCHAT and WDAUTHEN on postgres-7432
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0_Create.User.sql
...
...
roles/initial/tasks/initial_user_db_wdchat.yml
View file @
dc8fd59
-
name
:
Create user & db named WDCHAT on mongodb-7017
shell
:
/opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017 < /tmp/source/wdchat.js
-
name
:
Create user & db named WDCHAT and WDAUTHEN on postgres-7432
expect
:
command
:
/opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0_Create.User.sql
...
...
roles/initial/tasks/main.yml
View file @
dc8fd59
-
name
:
Initial Application based on Application Name
import_tasks
:
initial_user_db_wdchat.yml
when
:
app_name == 'wdchat'
#- import_tasks: initial_data_wdchat
#
when: app_name == 'wdchat'
-
import_tasks
:
initial_data_wdchat.yml
when
:
app_name == 'wdchat'
-
import_tasks
:
initial_user_db_dma.yml
when
:
app_name == 'dma'
#- import_tasks: initial_data_dma
# when: app_name == 'dma'
\ No newline at end of file
-
import_tasks
:
initial_data_dma.yml
when
:
app_name == 'dma'
-
import_tasks
:
update_data_dma_3.0.2.yml
when
:
app_name == 'dma' and app_version == '3.0.2'
-
import_tasks
:
update_data_dma_3.0.5.yml
when
:
app_name == 'dma' and app_version == '3.0.5'
-
import_tasks
:
update_data_dma_3.0.6.yml
when
:
app_name == 'dma' and app_version == '3.0.6'
-
import_tasks
:
update_data_dma_3.1.4.yml
when
:
app_name == 'dma' and app_version == '3.1.4'
-
import_tasks
:
update_data_dma_3.2.1.yml
when
:
app_name == 'dma' and app_version == '3.2.1'
-
import_tasks
:
update_data_dma_3.2.1.yml
when
:
app_name == 'dma' and app_version == '3.2.4'
-
import_tasks
:
update_data_dma_3.2.1.yml
when
:
app_name == 'dma' and app_version == '3.2.4'
-
import_tasks
:
update_data_dma_3.2.1.yml
when
:
app_name == 'dma' and app_version == '3.2.5'
-
import_tasks
:
update_data_dma_3.2.1.yml
when
:
app_name == 'dma' and app_version == '3.2.6'
-
import_tasks
:
update_data_dma_3.4.2.yml
when
:
app_name == 'dma' and app_version == '3.4.2'
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.0.2.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/update_dmamanager_3.0.2.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.0.2.js
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.0.5.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/update_dmamanager_3.0.5.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.1.3.js
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.0.6.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/update_dmamanager_3.0.6.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.1.3.js
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.1.4.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/update_dmamanager_3.1.4.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.1.3.js
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.2.1.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/default_app.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/initial_action_chain_template.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/initial_script_dmamanager.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/initial_script_insert_master.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/initial_version.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/patch_action_chain_template_logout.js
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.2.1/patch_action_chain_template_pin_login.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.2.7.js
\ No newline at end of file
roles/initial/tasks/update_data_dma_3.4.2.yml
0 → 100644
View file @
dc8fd59
-
name
:
Update dmamanager MogoDB
shell
:
/opt/stack/mongodb1/mongodb/bin/mongo --host 127.0.0.1 --port 7018 < /tmp/configuration/dma_3.4.2/initial_data_dma_3.4.2.js
-
name
:
Update servicegateway MogoDB
shell
:
/opt/stack/mongodb2/mongodb/bin/mongo --host 127.0.0.1 --port 7019 < /tmp/source/update_servicegateway_3.2.7.js
\ 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