Created
December 17, 2014 20:44
-
-
Save sigma/4c2e61118ea8392e9958 to your computer and use it in GitHub Desktop.
coreos-cloudinit VMware integration
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
core@localhost ~ $ docker run sigma/vmw-vmtest | |
You are running on VMware Workstation/Fusion | |
An OVF environment is defined: <?xml version="1.0" encoding="UTF-8"?> | |
<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1" | |
oe:id="CoreOSNode1"> <PlatformSection> | |
<Kind>vapprun</Kind> | |
<Version>1.0</Version> | |
<Vendor>VMware, Inc.</Vendor> | |
<Locale>en_US</Locale> | |
</PlatformSection> | |
<PropertySection> | |
<Property oe:key="guestinfo.user_data.url" oe:value="https://gist.githubusercontent.com/sigma/5a64aac1693da9ca70d2/raw/plop.yaml"/> | |
<Property oe:key="guestinfo.vm_name" oe:value="vm"/> | |
<Property oe:key="guestinfo.creation_date" oe:value="today"/> | |
</PropertySection> | |
</Environment> | |
core@localhost ~ $ curl https://gist.githubusercontent.com/sigma/5a64aac1693da9ca70d2/raw/plop.yaml | |
#cloud-config | |
write_files: | |
- path: /etc/plop | |
permissions: 0644 | |
owner: core | |
content: | | |
plop! | |
core@localhost ~ $ sudo ./coreos-cloudinit -from-vmw-tools | |
Checking availability of "vmw-guestinfo" | |
Fetching user-data from datasource of type "vmw-guestinfo" | |
Fetching meta-data from datasource of type "vmw-guestinfo" | |
2014/12/17 20:43:54 Parsing user-data as cloud-config | |
Processing cloud-config from user-data | |
2014/12/17 20:43:54 Writing file to "/etc/plop" | |
2014/12/17 20:43:54 Wrote file to "/etc/plop" | |
2014/12/17 20:43:54 Wrote file /etc/plop to filesystem | |
2014/12/17 20:43:54 Ensuring runtime unit file "etcd.service" is unmasked | |
2014/12/17 20:43:54 Ensuring runtime unit file "fleet.service" is unmasked | |
2014/12/17 20:43:54 Ensuring runtime unit file "locksmithd.service" is unmasked | |
2014/12/17 20:43:54 Ensuring runtime unit file "flanneld.service" is unmasked | |
core@localhost ~ $ cat /etc/plop | |
plop! | |
core@localhost ~ $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment