Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mailcow update task, add tags and improve README #47

Merged
merged 38 commits into from
Mar 21, 2021
Merged

Conversation

anadahz
Copy link
Member

@anadahz anadahz commented Oct 9, 2020

No description provided.

@francisco-core
Copy link
Contributor

Thanks for working on this! Just a question: did you make sure that this doesn't break when installing for the first time?

@anadahz
Copy link
Member Author

anadahz commented Nov 1, 2020

Thanks for working on this! Just a question: did you make sure that this doesn't break when installing for the first time?

@francisco-core The tasks with the tag update will only run if the update tag is specifie by ansible-playbook command (see the command example).

- Only install role if mailcow does not exist already
- Refactor conditional statements
- Add missing default variables
.travis.yml Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
ansible/roles/mailcow/defaults/main.yml Show resolved Hide resolved
Comment on lines +19 to +24
- name: debian10-instance
box: generic/debian10
memory: 2000
cpus: 1
groups:
- mailserver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing deploy on 2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an error, 2 different version of Debian should be tested.


platforms:
- name: debian9-instance
box: generic/debian10
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to generic/debian9.

@francisco-core
Copy link
Contributor

For me it's ready to merge. Let's just wait for travis to do its job.

@francisco-core
Copy link
Contributor

francisco-core commented Feb 7, 2021

@anadahz let me know when it's ready for review.

anadahz added 4 commits March 19, 2021 21:30
TODO: Make update tasks idempotent
The Debian images need to upgrade grub-pc, which cause a pop-up,
breaking the update role. This issue affects only the testing generic
Debian Vagrant images.
See: adoptium/infrastructure#1980
Implement only for Molecule testing as Travis CI IP addresses often get
rate limited.
@anadahz
Copy link
Member Author

anadahz commented Mar 20, 2021

@francisco-core This is now ready to merge.
I have also fixed 2 new bugs in 2b1ddbc and 9939b94.

Copy link
Contributor

@francisco-core francisco-core left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor questions / details, but other than that it's good to merge. Thank you for all the work done here!

64343935313532643730613634653633373066616332326233383866613564643437323630383165
37333139663266303366373732396366613766666230333730643638383532396435323639366662
6364623030656639643964333361363735626162653861643931
36366135343963646138626131313034343638366566386166353533316464623032353338636433
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have here a DOCKERHUB_USER and pass. Don't we need it defined here to avoid those rate-limits?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

state: latest

# Bug: https://github.com/pypa/get-pip/issues/83
- name: Install pip3.5 workaround
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that on the host system we are installing python3-pip shouldn't we also install here just a generic pip version? like from https://bootstrap.pypa.io/get-pip.py? I don't see any easy way to keep these consistent. Though I can also see Debian saying well behind on pip compared to that official one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this, this fix shouldn't be in this branch.

I removed this file in the commit: 76252b4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well if it works, then it's good.

@francisco-core
Copy link
Contributor

good to merge

@anadahz
Copy link
Member Author

anadahz commented Mar 21, 2021

@francisco-core Thank you for the review, merging.

@anadahz anadahz merged commit ad64f2a into master Mar 21, 2021
@anadahz anadahz deleted the mailcow/update branch March 21, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants