Skip to content

Commit

Permalink
Updated runn-locally.sh and fixed config generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntimo committed Sep 14, 2022
1 parent 98fb52d commit 2de468e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelogs/v1.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# v1.7.0

## Ansible
- Updated for GitHub actions
7 changes: 7 additions & 0 deletions changelogs/v1.7.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# v1.7.1

## Ansible
- Set mailcow branch variable for generate config task

## Scripts
- Updated run-locally.sh with better error handling for zero input
2 changes: 1 addition & 1 deletion roles/mailcow/defaults/main/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
mailcow__git_repo: https://github.com/mailcow/mailcow-dockerized.git
mailcow__git_version: master

timezone_selection: Europe/Berlin
mailcow__timezone: Europe/Berlin
3 changes: 2 additions & 1 deletion roles/mailcow/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
shell: ./generate_config.sh
environment:
MAILCOW_HOSTNAME: "{{ mailcow__hostname }}"
MAILCOW_TZ: "{{ timezone_selection }}"
MAILCOW_TZ: "{{ mailcow__timezone }}"
MAILCOW_BRANCH: "{{ mailcow__git_version }}"
args:
executable: /bin/bash
chdir: /opt/mailcow-dockerized
Expand Down
8 changes: 8 additions & 0 deletions run-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

PHASE=$1

if [ -z $PHASE ]; then
echo "Please select a phase:"
echo "setup"
echo "tests"
echo "teardown"
exit 1
fi

if [ $PHASE == "setup" ]; then
ansible-playbook mailcow-start-server.yml --diff
sleep 10
Expand Down

0 comments on commit 2de468e

Please sign in to comment.