This is a attempt to provide a 'single click' deployment of Rancher on Digital Ocean's IaaS. There is some modularity to it but the focus is on ease of use so we make some assumptions about the way it should work. It currently needs to create a new environment (called DigitalOcean
) to add the DO Droplets to rather than using the Default
environment that Rancher creates automatically.
- https://www.terraform.io/ (version 0.10 or higher)
- Human (to push the button)
Deploy
make
Teardown
make teardown
Assumes you have the following terraform variables defined:
ssh_keys
- Digtial Ocean SSH Key ID to set for the droplet. One way to get this ID is to use doctl like so:doctl compute ssh-key list | grep $keyname
digitalocean_token
- Digital Ocean Auth Token for use by Terraform .rancher_version_tag
(optional) - Version of rancher to use (e.g.stable
,latest
)orchestration
(optional) - Orchestrator (e.g.cattle
,kubernetes
)
Additionally you can set the following Bash variables:
SLEEPTIME
- interval to sleep between polling attempts while waiting for the server (first node) to become ready
Find the IP of the droplet/node named rancher-server-0
and go to http://<ipv4_address>:8080
to get to the Rancher UI. The rancher-nodes will be in the environment called DigitalOcean