Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
efc5d22
Fixing linting so CI can work.
gregharvey Apr 14, 2023
1cb5a6d
More linting fixes.
gregharvey Apr 14, 2023
7d9463d
Downgrading Ubuntu due to Docker issues with ce-dev and latest.
gregharvey Apr 14, 2023
da0bb08
Making pipefail shell commands use /bin/bash.
gregharvey Apr 14, 2023
c24f6a3
Adding pipefail code to cachetool installer block.
gregharvey Apr 14, 2023
d69de84
Adding executable for drush install checker.
gregharvey Apr 14, 2023
2e9a3f2
Merge branch '1.x' into bug_fixes
gregharvey Apr 19, 2023
92107be
Fixing D7 ctools behaviour to match features handling.
gregharvey Apr 19, 2023
330a126
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Apr 19, 2023
eca7316
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Apr 19, 2023
e8a6920
Merge branch '1.x' into bug_fixes
gregharvey Apr 26, 2023
bb65b12
Jinja2 template looking for settings.php using wrong path.
gregharvey Apr 26, 2023
37c305b
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Apr 26, 2023
15f8897
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Apr 26, 2023
0b26394
Fixing config_generate for Drupal.
gregharvey May 11, 2023
00331c2
Making host checking more robust.
gregharvey May 11, 2023
f2bbc9e
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
2bbb925
Removing variable declaration that will break host check.
gregharvey May 11, 2023
287a23f
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
0f7a89d
Allow us to use deploy_code with a completely custom build and do not…
gregharvey May 11, 2023
2e04af8
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/roles/sync/database_sync/database_sync-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Sync MySQL databases between environments.
---
mysql_sync:
mysqldump_params: "{{ _mysqldump_params }}" # set in _init but you can override here
cleanup: true # if false leaves tmp database dump on deploy server for debugging purposes
databases:
- source:
# Name of the database to take a dump from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
src: "{{ item }}"
dest: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}/settings.php"
with_first_found:
- "{{ playbook_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.settings.php.j2"
- "{{ playbook_dir }}/{{ site.folder }}/{{ build_type }}.settings.php.j2"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.settings.php"
- "settings.php.j2"
3 changes: 3 additions & 0 deletions roles/deploy_code/deploy_code-custom/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

# Nothing to do here.
1 change: 1 addition & 0 deletions roles/sync/database_sync/database_sync-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Sync MySQL databases between environments.
---
mysql_sync:
mysqldump_params: "{{ _mysqldump_params }}" # set in _init but you can override here
cleanup: true # if false leaves tmp database dump on deploy server for debugging purposes
databases:
- source:
# Name of the database to take a dump from.
Expand Down
6 changes: 3 additions & 3 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ ansible_host_check(){
if [ -n "$TARGET_DEPLOY_HOST" ]; then
ANSIBLE_BIN=$(command -v ansible-playbook)
ANSIBLE_CMD="$ANSIBLE_BIN $OWN_DIR/scripts/host-check.yml"
if [ "$DRY_RUN" = "yes" ]; then
ANSIBLE_CMD="$ANSIBLE_CMD --check"
fi
if [ "$VERBOSE" = "yes" ]; then
ANSIBLE_CMD="$ANSIBLE_CMD -vvvv"
fi
Expand All @@ -167,6 +164,9 @@ ansible_host_check(){
fi
$ANSIBLE_CMD --extra-vars "{_deploy_host: $TARGET_DEPLOY_HOST}" --extra-vars "$ANSIBLE_DEFAULT_EXTRA_VARS" --extra-vars "$ANSIBLE_EXTRA_VARS"
return $?
# No host to check provided, just return a clean exit code.
else
return 0
fi
}

Expand Down
10 changes: 8 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,14 @@ fi
# Get Ansible defaults.
get_ansible_defaults_vars

# Optionally carry out a host check.
# Optionally carry out a host check if --host is provided.
ansible_host_check
ANSIBLE_HOST_CHECK_RESULT=$?
# Exit early if host not found.
if [ -n "$ANSIBLE_HOST_CHECK_RESULT" ] && [ "$ANSIBLE_HOST_CHECK_RESULT" != 0 ]; then
echo "ce-deploy failed to find the host. Aborting."
exit 1
fi

# From this point on, we want to trigger the "revert" if anything fails.
ANSIBLE_BUILD_RESULT=1
Expand All @@ -113,5 +119,5 @@ if [ -n "$ANSIBLE_BUILD_RESULT" ] && [ "$ANSIBLE_BUILD_RESULT" = 0 ]; then
exit 0
fi
# Failed somehow. Normally unreachable in strict mode.
echo "Something went wrong. Please fill a bug report against ce-deploy."
echo "Something went unexpectedly wrong with ce-deploy. Please file a bug report - https://github.com/codeenigma/ce-deploy/issues/new"
exit 1