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

Ubuntu 20.04 (focal) support #813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tbaumann
Copy link

Mainly python3 pains.

Using Ubuntu rspamd because there is no upstream repo.

This partly fixes #789

Untested modules, those will likely still fail
- news
- git
- readlater
- blog
- ircbouncer
- xmpp
- owncloud
- vpn

Mainly python3 pains.

Using Ubuntu rspamd because there is no upstream repo.

This partly fixes sovereign#789

Untested modules, those will likely still fail
    - news
    - git
    - readlater
    - blog
    - ircbouncer
    - xmpp
    - owncloud
    - vpn
@tbaumann
Copy link
Author

I'm not sure I will continue to invest into this project. Ansible isn't my strength and I find this all quite rough around the edges. I think I go back to setting it up manually the way I like it.

@adborden
Copy link
Contributor

Related: letsencrypt/cerbot is deprecating certbot-auto, so the manual installtion of depedencies here will be necessary on other distributions as well.

@adborden
Copy link
Contributor

@tbaumann thank you for your efforts! I understand what you mean about the rough edges. As we've added support for newer distributions and features, I feel like there's been regressions in other places. Hopefully we can improve that soon.

I'm testing this out and I've hit a few snags. It could just be differences in our base images. I'm using Ubuntu 20.04 on Google Cloud. What were you testing on?

@tbaumann
Copy link
Author

I used the cloud image from my vps provider.
I don't think it's significantly modified. And I ran Dist-Upgrade before

@tbaumann
Copy link
Author

I think the issues I had to deal with are basically one of two categories.

Either different package sources or python3 snafu.

@tbaumann
Copy link
Author

It's been a while. Rough around the edges was mostly that I wasn't confident that I pulled out all the hard coded credentials.
And the way users were added was beyond confusing to me.
Somehow they exist as passwd users but also in this SQL database. I never managed to log into the web portal.
And the way the SQL uses are inserted didn't inspire me with confidence that it's safe to run this task multiple times to add users.

Basically I decided that there is too much hidden complexity and that I'm better off doing it the traditional way.
But admittedly that task has been on my smelly pile of things to do ever since. So maybe I should have pushed through.

@adborden
Copy link
Contributor

Ah, I see what you mean about the rough edges. Sovereign is pretty opinionated about how it does things, so you're giving up some flexibility in exchange for automated configuraiton.

In general, the playbook is idempotent*, so running it multiple times is fine, even encouraged because the idea is that running the playbook will get your instance into a known good state (at least in theory).

Re: users, sovereign creates one main OS user with SSH access. For mail, IRC, prosody, etc, sovereign creates virtual users. Out of the box, Postfix uses local users on the system, but sovereign configures it to use virtual users and mail domains from PostgreSQL.

* It's been a while but the wallbag/readlater role may not be idempotent, but running it multiple times will fail harmlessly.

@adborden
Copy link
Contributor

I got stuck on the webserver role. PHP PEAR is not installed. Even after installing it, the pear task fails. This is a module in early preview state, so it's not really considered stable. I think we'll want to fall back to the command module, instead.

Is PEAR the only way to get php-mcrypt on focal?

@tbaumann
Copy link
Author

Pear just seemed the easiest way. I guess the alternative would be to build the module locally.
Don't know though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Ubuntu 'Focal Fossa' 20.04 LTS
2 participants