Commit graph

125 commits

Author SHA1 Message Date
774f3f7c2e
Streamline example app variable use 2021-08-01 09:52:07 +02:00
f7389dc8c3
Add caddy README 2021-08-01 09:38:41 +02:00
21fdac4f5d
Example application, improve upstream handling 2021-07-31 21:16:42 +02:00
37bd1ed2cd
Fix caddy role tasks changed recognition 2021-07-31 17:56:54 +02:00
79c704c1f9
Switch caddy to use json configuration 2021-07-31 17:26:06 +02:00
bebdf72b19
Ease caddy stack variable setup 2021-07-30 23:25:47 +02:00
241ce71f46
Make upstream naming more general 2021-07-30 13:32:07 +02:00
daef2b7f13
Add conditional default subdomain setting to proxy
If a domain has been declared for the host, the upstream file will proxy
at a subdomain named for the stack it proxies to,
otherwise it will do the same for the path.
2021-07-30 11:50:10 +02:00
03a0b0ce00
Add more stable reverse proxy updating 2021-07-30 11:39:14 +02:00
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
fbf930054f
Make sure curl is installed for the hacky reverse proxy 2021-07-30 00:46:06 +02:00
1b3c14b4ce
Implement very naive solution 2021-07-30 00:30:33 +02:00
351e1202b2
Fix Caddyfile template for undefined email 2021-07-29 17:04:33 +02:00
4b947a3112
Add api endpoint toggle variable to caddy role 2021-07-29 16:47:13 +02:00
3192618319
Add development playbook to gitignore 2021-07-29 16:00:46 +02:00
6de8f0fb50
Add testing inventory and group variables
Added fully test-ready inventory and groups using vagrant and able to
run repeatedly as necessary.
2021-07-29 15:11:28 +02:00
9f188c2674
Add basic caddy swarm role
Added caddy as swarm container. Uses templated Caddyfile which can be
set up for testing purposes for now.
Depends on docker and docker-swarm, and will keep its stuff where
docker-swarm sets itself up.
2021-07-29 14:39:43 +02:00
453cd2fd2b
Add default variables to docker-swarm role
Variable `docker_stack_files_dir` can be used if other stack deployments
need to copy over configuration files or other extra files. Defaults to
`/stacks` but can be set to anything and other roles should take care to
respect this and put their files relative to it.

Variable `docker_swarm_public_network_name` can be used to set the name
of the network to be created that faces outwards (ingress network) and
to which all stacks will be connecting.
2021-07-29 13:32:46 +02:00
54cbe97442
Restructure inventories 2021-07-29 11:42:21 +02:00
9e369e9adc
Add python modules required for docker stacks 2021-07-27 14:08:19 +02:00
b16ab5205c
Fix docker-swarm for multi-ip machines
Added variable docker_swarm_advertise_addr which can be set to the
advertise address swarm should use.

Mostly introduced for vagrant-based test setups for now, which contain
multiple IP addresses and fail otherwise.
2021-07-27 13:46:24 +02:00
7e99f97958
Add docker-swarm setup 2021-07-27 13:07:42 +02:00
578f8b7dbf
Fix docker python module installation for sudo 2021-07-27 12:54:32 +02:00
89453cd53b
Add docker installation role 2021-07-27 12:35:20 +02:00
1fe4c617db
Add system upgrade role
initial commit
2021-07-24 11:51:37 +02:00