A complete ansible infrastructure for my personal server. Hosts a variety of FOSS applications through docker deployments within individual ansible roles.
Find a file
Marty Oehme 95832941c0
Ensure stacks can inject their upstream to caddy
Created bind volume for caddy which takes the json fragments which will
later be injected through the caddy api to dynamically set their
individual reverse proxy addresses.

This is not entirely necessary if the injection should be done as a
variable instead, but makes it easier to change routes and especially
more complicated ones (I'm thinking of gitea with ssh access e.g.).
2021-07-30 11:10:05 +02:00
group_vars Add testing inventory and group variables 2021-07-29 15:11:28 +02:00
host_vars Add testing inventory and group variables 2021-07-29 15:11:28 +02:00
roles Ensure stacks can inject their upstream to caddy 2021-07-30 11:10:05 +02:00
.gitignore Add development playbook to gitignore 2021-07-29 16:00:46 +02:00
ansible.cfg Add testing inventory and group variables 2021-07-29 15:11:28 +02:00
README.md Add testing inventory and group variables 2021-07-29 15:11:28 +02:00
site.yml Make sure curl is installed for the hacky reverse proxy 2021-07-30 00:46:06 +02:00
staging.yml Add testing inventory and group variables 2021-07-29 15:11:28 +02:00
Vagrantfile Fix docker python module installation for sudo 2021-07-27 12:54:32 +02:00

Cloudserve infrastructure

Testing

This repository comes with a test-ready setup to try out the complete site setup locally. It uses vagrant to accomplish this and create a pretend target host. So, install vagrant on your system and to make tests repeatable also install the vagrant plugins vagrant-hosts and vagrant-hostsupdater.

vagrant plugin install vagrant-hosts vagrant-hostsupdater

Then you are ready to run the complete infrastructure setup locally, simply by executing ansible-playbook site.yml. You can of course pick and choose what should be executed with host limits, tags, group variables, and so on, but this should provide an easy way to see if a) the playbook is working as intended and b) what it does is useful.