This is a simple Ansible environment for trying out Rancher.
When setting up a Rancher server from this repository first time, the letsencrypt
deployment needs to be done in three steps (enable letsencrypt support in vhost, create certs, enable ssl) because there is a chicken-egg problem:
- start with
fooapp_ssl: false
andfooapp_letsencrypt: false
, make sure everything works over HTTP - flip
fooapp_letsencrypt: true
, do not touchfooapp_ssl
yet. Run thefooapp
role, make surenginx
is restarted. - add a certificate for
fooapp
to theletsencrypt
role, run theletsencrypt
role - now you can flip
fooapp_ssl: true
and run thefooapp
rule, make sure everything works over HTTPS
Rancher gives a good copy-pasteable command for adding nodes,
- Figure out how SSL certificates and load balancers work under Rancher
- Try running some actual app like Jenkins
- How does one access container logs?
- Setup an external database (MySQL)
- Evaluate Cattle, Kubernetes, Mesos and Swarm modes and select multi-node deployment strategy