Go to file
Josh Wood b56c0f5609 Docs/vmware-backdoor: Rename backdoor to guestinfo
Based on results of google searches on a few possible titles
to improve on the connotation of backdoor, Guestinfo Configuration
Interface (as part of the RPC API) seems recognizable in vmware
circles. Friends call it just guestinfo.

This changeset also makes docs and usage for this flag appear with
a single hypen (-flag) like most go programs do.
2015-11-05 15:27:33 -08:00
config config: add wal_dir into etcd2.go 2015-10-15 09:36:48 -07:00
datasource datasource, network: add support for DigitalOcean floating IPs 2015-10-09 10:52:05 -04:00
Documentation Docs/vmware-backdoor: Rename backdoor to guestinfo 2015-11-05 15:27:33 -08:00
Godeps godeps: add github.com/sigma/vmw-guestinfo 2015-08-24 09:03:29 -07:00
initialize cloudinit: trim trailing whitespaces in #cloud-config header 2015-09-07 18:30:02 +02:00
network network: do not assign gateway for DigitalOcean anchor IP address 2015-10-27 10:49:05 -04:00
pkg pkg/http: up the timeout to 10 seconds 2015-08-11 10:42:41 -07:00
system log: use log.Print instead of fmt.Print 2015-08-23 19:30:03 -07:00
units units: update dependencies 2014-06-27 14:29:59 -07:00
.gitignore style(httpbackoff -> pkg): Adjusts package name to follow convention 2014-05-22 14:37:19 -04:00
.travis.yml travis: enable go 1.5 2015-09-16 13:02:45 -07:00
build build: extract the version number from git 2015-08-12 11:05:04 -07:00
CONTRIBUTING.md docs: Update maintainers and contribution guide 2014-09-08 12:55:17 -07:00
coreos-cloudinit_test.go metadata: simplify merging of metadata 2015-01-26 16:08:26 -08:00
coreos-cloudinit.go Docs/vmware-backdoor: Rename backdoor to guestinfo 2015-11-05 15:27:33 -08:00
cover feat(tests): add cover script 2014-05-10 01:42:57 -07:00
DCO chore(contributing): clean up CONTRIBUTING.md and split out DCO 2014-04-04 10:40:37 -07:00
LICENSE feat(*): initial commit 2014-01-19 12:25:11 -08:00
MAINTAINERS docs: Update maintainers and contribution guide 2014-09-08 12:55:17 -07:00
NOTICE feat(*): initial commit 2014-01-19 12:25:11 -08:00
README.md readme: add link to coreos/bugs 2015-09-24 17:50:06 -07:00
test main: default to GOMAXPROCS=1 2015-09-30 17:23:40 -07:00

coreos-cloudinit Build Status

coreos-cloudinit enables a user to customize CoreOS machines by providing either a cloud-config document or an executable script through user-data.

Configuration with cloud-config

A subset of the official cloud-config spec is implemented by coreos-cloudinit. Additionally, several CoreOS-specific options have been implemented to support interacting with unit files, bootstrapping etcd clusters, and more. All supported cloud-config parameters are documented here.

The following is an example cloud-config document:

#cloud-config

coreos:
    units:
      - name: etcd.service
        command: start

users:
  - name: core
    passwd: $1$allJZawX$00S5T756I5PGdQga5qhqv1

write_files:
  - path: /etc/resolv.conf
    content: |
        nameserver 192.0.2.2
        nameserver 192.0.2.3

Executing a Script

coreos-cloudinit supports executing user-data as a script instead of parsing it as a cloud-config document. Make sure the first line of your user-data is a shebang and coreos-cloudinit will attempt to execute it:

#!/bin/bash

echo 'Hello, world!'

user-data Field Substitution

coreos-cloudinit will replace the following set of tokens in your user-data with system-generated values.

Token Description
$public_ipv4 Public IPv4 address of machine
$private_ipv4 Private IPv4 address of machine

These values are determined by CoreOS based on the given provider on which your machine is running. Read more about provider-specific functionality in the CoreOS OEM documentation.

For example, submitting the following user-data...

#cloud-config
coreos:
    etcd:
        addr: $public_ipv4:4001
        peer-addr: $private_ipv4:7001

...will result in this cloud-config document being executed:

#cloud-config
coreos:
    etcd:
        addr: 203.0.113.29:4001
        peer-addr: 192.0.2.13:7001

Bugs

Please use the CoreOS issue tracker to report all bugs, issues, and feature requests.