Commit Graph

10 Commits

Author SHA1 Message Date
Jonas L f8de1ec865
chore: install python3-venv in vagrant for dev (#2057) 2022-08-14 19:56:00 +02:00
jo 2f205544c2 feat: use dedicated 'libretime' user
BREAKING CHANGE: The default `www-data` user has been replaced by a dedicated  `libretime` user to run the services. Be sure to change the ownership of the libretime files.
2022-07-07 10:51:07 +02:00
Jonas L 87ab49c8b9
chore: improve vagrant debian prepare script (#1850)
- add vim package
- split apt-cacher packages and utils
2022-05-09 12:55:15 +02:00
Jonas L 19faffea16
fix: make vagrant source.list update idempotent (#1520) 2022-01-17 09:33:09 +02:00
Jonas L 56a3875e2d
chore: add auto-apt-proxy to vagrant prepare (#1511)
* chore: add auto-apt-proxy to vagrant prepare

* bypass apt SRV redirections for deb.debian.org
2022-01-13 09:59:51 +02:00
Kyle Robbertze b193e0a28c add apt update to accept release suite change
Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929248
2021-08-18 17:56:45 +02:00
jo b5f302ac61 Enhance bash shebangs 2021-08-17 12:22:47 +02:00
jo 8ce437828e Remove install apt-get dangerous options
Apt should fail fast (and report) instead of
forcing a broken installation.

The version check is also not required anymore as
most distribution now provide an apt version > 1.1.
2021-08-17 00:07:39 +02:00
jo f2e840989a Fix executable bit 2021-06-04 17:06:05 +02:00
Lucas Bickel c29285ae48 Vagrant Debian support (and experimental CentOS)
This changes the Vagrant setup to support multiple installations as multiple
boxes. In addition to Ubuntu Vagrant can now be used to install on Debian
as well as on CentOS.

I took the chance to clean up the .deb install a bit and backported analyzer
and celery to SysV proper so it runs there. Some of the distro specfics were
moved to the install script from the python setup scripts to acheive this.

For the CentOS support I added a rather involved OS prepare script. In the
long term this will be added to the preparing-the-server docs we already have.

I had to switch the default port to http-alt (8080). On CentOS 9080 is registered
for ocsp and getting it to work for apache without hacking SELinux is hard. I
think 8080 is the RFC way to go anyhow. If anyone want to override this it
should be rather easy using the --web-port arg and by hacking Vagrantfile.

The PyOpenSSL code has been refactored for all the distros that the Vagrantfile
now supports.

As far as my checks go, I tried this code with all the distros, uploaded a track
and downloaded a unicode and a ssl podcast and was able to listen to them
in each case.

In the experimental CentOS case, the UI is not up to spec since services
need to get scheduled through systemctl and the status overview (ie. on the /?config page)
do not work properly. They need to be as follows:

```
sudo systemctl start airtime-playout
sudo systemctl start airtime-liquidsoap
sudo systemctl start airtime_analyzer.service
sudo systemctl start airtime-celery.service
```
2017-03-12 13:42:22 +01:00