Skip to content

Instantly share code, notes, and snippets.

@apatil
Last active August 29, 2015 13:58
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 apatil/10407554 to your computer and use it in GitHub Desktop.
Save apatil/10407554 to your computer and use it in GitHub Desktop.
user-data-test.yml
#cloud-config
coreos:
units:
- name: test.service
content: "[Unit]\nDescription=Test\n\n[Service]\nExecStart=/usr/bin/echo \"hi\"\nType=oneshot\n\n[Install]\nWantedBy=multi-user.target\n"
@apatil
Copy link
Author

apatil commented Apr 10, 2014

sudo ./coreos-cloudinit --from-file user-data-test.yml
2014/04/10 18:02:25 Fetching user-data from datasource of type "local-file"
2014/04/10 18:02:25 Parsing user-data as cloud-config
2014/04/10 18:02:25 Writing unit test.service to filesystem
2014/04/10 18:02:25 Placed unit test.service at /etc/systemd/system/test.service
2014/04/10 18:02:25 Enabling unit file /etc/systemd/system/test.service
2014/04/10 18:02:25 Enabled unit test.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment