Last active
December 11, 2015 20:12
-
-
Save ibuildthecloud/ea4ac32c80f36f592e73 to your computer and use it in GitHub Desktop.
cloud-config w/ script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
write_files: | |
- path: /etc/rc.local | |
permissions: "0755" | |
owner: root | |
content: | | |
#!/bin/bash | |
echo "I'm doing things on start" | |
touch /tmp/i-did-something | |
rancher: | |
services: | |
# Just an example of running a container on that host, or you can do 'docker run ...' in the script above | |
nginx: | |
image: nginx | |
environment: | |
ECS_CLUSTER: your-ecs-cluster-name | |
# If you have selected a RancherOS AMI that does not have ECS enabled by default, | |
# you'll need to enable the system-service for the ECS agent. | |
services_include: | |
amazon-ecs-agent: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment