forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix refresh permission issues. (ansible#16)
* Fix refresh permissin issues. * Add Philippines services dev server to hosts file - Also organize some of the hosts info * Hotfix - remove duplicate ke services definition * Add documentation for setting up vagrant locally - Add minor improvements to deploy scripts * Correct /etc/hosts file entry * Add profiling services IP for Philippines (ansible#18) * Update Philippines server IPs - Assign new IPs for server API, services Production & Payments servers * Add a role to configure cloudwatch alerts * Add newrelic deploy role (ansible#21) * Resolve conflicts
- Loading branch information
Showing
11 changed files
with
80 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
provisioning/roles/copy-prod-db/files/user_admin_paths.sql
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 10 additions & 5 deletions
15
provisioning/roles/copy-prod-db/templates/restore_loans.sh.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#!/bin/bash | ||
|
||
#Import the dumped tables into the internal mysql server | ||
for j in {{ database_qa }} {{ database_qa2 }} {{ database_staging }} {{ database_demo }} {{ database_dev }} | ||
do | ||
mysql -u {{ target_db_username }} -p"{{ target_db_password }}" -h {{ target_db_host }} $j < {{ destination_folder }}/{{ database }}.sql | ||
done | ||
#Import the dumped loans schema with no data into the internal mysql server | ||
new_country_import() | ||
{ | ||
for j in {{ database_qa }} {{ database_qa2 }} {{ database_staging }} {{ database_demo }} {{ database_dev }} | ||
do | ||
mysql -u {{ target_db_username }} -p'{{ target_db_password }}' -h {{ target_db_host }} $j < {{ destination_folder }}/{{ database }}.sql | ||
done | ||
} | ||
|
||
new_country_import |
15 changes: 10 additions & 5 deletions
15
provisioning/roles/copy-prod-db/templates/restore_tables.sh.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#Import the dumped tables into the internal mysql server | ||
for j in {{ database_qa }} {{ database_qa2 }} {{ database_staging }} {{ database_demo }} {{ database_dev }} | ||
do | ||
for i in $(cat {{ destination_folder }}/{{ tables }}) | ||
new_country_base_tables_import() | ||
{ | ||
for j in {{ database_qa }} {{ database_qa2 }} {{ database_staging }} {{ database_demo }} {{ database_dev }} | ||
do | ||
mysql -u {{ target_db_username }} -p"{{ target_db_password }}" -h {{ target_db_host }} $j < {{ destination_folder }}/$i.sql | ||
for i in $(cat {{ destination_folder }}/{{ tables }}) | ||
do | ||
mysql -u {{ target_db_username }} -p'{{ target_db_password }}' -h {{ target_db_host }} $j < {{ destination_folder }}/$i.sql | ||
done | ||
done | ||
done | ||
} | ||
|
||
new_country_base_tables_import |
Oops, something went wrong.