Skip to content

Instantly share code, notes, and snippets.

@ibuildthecloud
Last active December 11, 2015 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibuildthecloud/ea4ac32c80f36f592e73 to your computer and use it in GitHub Desktop.
Save ibuildthecloud/ea4ac32c80f36f592e73 to your computer and use it in GitHub Desktop.
cloud-config w/ script
#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