cloud-init-server

command module
v0.0.0-...-d6169fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

cloud-initserver

Serve cloud-init data over http

Usage cloud-init-server

Usage of ./cloud-init-server:
  -bind string
        Address to bind on defaults to :80 (default ":80")
  -config string
        Path to put cloud-init config files in (default "/etc/cloud-init")

Configuration structure

The cloud-init data is stored in json files containing the two subobjects, these files are stored under a file called after the macaddress of the caller. Example structure

/etc/cloud-init/
/etc/cloud-init/a6:df:6b:76:78:f7
/etc/cloud-init/6a:90:49:79:62:50

Where /etc/cloud-init/6a:90:49:79:62:50 contains:

{
    "meta-data":
        {
            "local-hostname": "myhostname"
        },
    "user-data":
        {
            "users": [
                {
                    "name": "myusername",
                    "plain_test_passwd": "mypassword",
                    "shell": "/bin/bash",
                    "sudo": "ALL=(ALL) ALL"
                }
            ]
        }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL