I have attempted to setup an auto-scaling group and Launch configuration for Rancher. The machines launch but the Rancher client does not install. I see nothing unusual in the Console logs. Below is the Cloud config I am using.
#cloud-config
rancher:
services:
register:
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/rancher:/var/lib/rancher
image: rancher/agent
command:
- http://rancher.panosoft.com:8080/v1/scripts/SECRETKEY
I have also tried it this way:
#!/bin/bash
sudo docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v0.11.0 http://rancher.panosoft.com:8080/v1/scripts/SECRETKEY
But neither seems to work. I can install the agent manually using using the same command in the second example ant it works fine. Any ideas?