UCCNetsoc/cloud

split homedir consistency and webserver configurator into separate containers

Closed this issue · 1 comments

currently when admin api boots it up it launches two "jobs"

one ensures home directories are the correct permissions, another ensures a webserver is configured based off <homedir>/www/<website>/netsoc.json

these currently restrict nsa to being ran on a single node (i.e not HA) because if we were to run multiple instances of admin, it'd run these timed jobs multiple times when they only need to be single-instance (they make configuration changes/changes to files)

https://github.com/UCCNetsoc/admin/blob/master/api/v1/main.py#L36
https://github.com/UCCNetsoc/admin/blob/master/api/v1/homedir_consistency.py

https://github.com/UCCNetsoc/admin/blob/master/api/v1/main.py#L46
https://github.com/UCCNetsoc/admin/blob/master/api/v1/webserver_configurator.py

We will need to write two new dockerfiles that run these jobs as their own containers. This will also improve logging so the results of these jobs don't get spammed into the regular admin api stuff

library code should be shared

no longer needed