Skip to content

lambdaspace/caddy-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caddy_gen

[PROVISIONAL] caddy_gen role will create and start a docker container with Caddy using the image wemakeservices/caddy-gen:latest. This container will search for containers with the container labels detailed in caddy-gen's documentation to auto-generate its Caddy file.

Requirements

Ansible 2.1 (because of docker_container module)

docker Python library (again needed by docker_container). Example installation.

Role Variables

  • docker_socket: Location of docker socket on host machine. Defaults to: /var/run/docker.sock
  • acme_storage: Where ACME will be stored, the path will be created if not present. Defaults to: /etc/certs/acme
  • cert_storage: Where Certs will be stored, the path will be created if not present. Defaults to: /etc/certs/ocsp

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - { role: panagiks.caddy_gen }

License

MIT