diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/cloud-config-user-groups.txt | 88 | ||||
-rw-r--r-- | doc/examples/cloud-config.txt | 3 | ||||
-rw-r--r-- | doc/sources/altcloud/README | 65 | ||||
-rw-r--r-- | doc/sources/configdrive/README (renamed from doc/configdrive/README) | 0 | ||||
-rw-r--r-- | doc/sources/kernel-cmdline.txt (renamed from doc/kernel-cmdline.txt) | 0 | ||||
-rw-r--r-- | doc/sources/nocloud/README (renamed from doc/nocloud/README) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/README (renamed from doc/ovf/README) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/example/ovf-env.xml (renamed from doc/ovf/example/ovf-env.xml) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/example/ubuntu-server.ovf (renamed from doc/ovf/example/ubuntu-server.ovf) | 0 | ||||
-rwxr-xr-x | doc/sources/ovf/make-iso (renamed from doc/ovf/make-iso) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/ovf-env.xml.tmpl (renamed from doc/ovf/ovf-env.xml.tmpl) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/ovfdemo.pem (renamed from doc/ovf/ovfdemo.pem) | 0 | ||||
-rw-r--r-- | doc/sources/ovf/user-data (renamed from doc/ovf/user-data) | 0 |
13 files changed, 155 insertions, 1 deletions
diff --git a/doc/examples/cloud-config-user-groups.txt b/doc/examples/cloud-config-user-groups.txt new file mode 100644 index 00000000..04f01719 --- /dev/null +++ b/doc/examples/cloud-config-user-groups.txt @@ -0,0 +1,88 @@ +# add groups to the system +# The following example adds the ubuntu group with members foo and bar and +# the group cloud-users. +groups: + - ubuntu: [foo,bar] + - cloud-users + +# add users to the system. Users are added after groups are added. +users: + - name: foobar + gecos: Foo B. Bar + primary-group: foobar + groups: users + expiredate: 2012-09-01 + ssh-import-id: foobar + lock-passwd: false + passwd: $6$j212wezy$7H/1LT4f9/N3wpgNunhsIqtMj62OKiS3nyNwuizouQc3u7MbYCarYeAHWYPYb2FT.lbioDm2RrkJPb9BZMN1O/ + - name: barfoo + gecos: Bar B. Foo + sudo: ALL=(ALL) NOPASSWD:ALL + groups: users, admin + ssh-import-id: None + lock-passwd: true + ssh-authorized-keys: + - <ssh pub key 1> + - <ssh pub key 2> + cloudy: + gecos: Magic Cloud App Daemon User + inactive: true + system: true + +# Valid Values: +# gecos: The user name's real name, i.e. "Bob B. Smith" +# homedir: Optional. Set to the local path you want to use. Defaults to +# /home/<username> +# primary-group: define the primary group. Defaults to a new group created +# named after the user. +# groups: Optional. Additional groups to add the user to. Defaults to none +# lock-passwd: Defaults to true. Lock the password to disable password login +# inactive: Create the user as inactive +# passwd: The hash -- not the password itself -- of the password you want +# to use for this user. You can generate a safe hash via: +# mkpasswd -m SHA-512 -s 4096 +# (the above command would create a password SHA512 password hash +# with 4096 salt rounds) +# +# Please note: while the use of a hashed password is better than +# plain text, the use of this feature is not ideal. Also, +# using a high number of salting rounds will help, but it should +# not be relied upon. +# +# To highlight this risk, running John the Ripper against the +# example hash above, with a readily available wordlist, revealed +# the true password in 12 seconds on a i7-2620QM. +# +# In other words, this feature is a potential security risk and is +# provided for your convenience only. If you do not fully trust the +# medium over which your cloud-config will be transmitted, then you +# should use SSH authentication only. +# +# You have thus been warned. +# no-create-home: When set to true, do not create home directory. +# no-user-group: When set to true, do not create a group named after the user. +# no-log-init: When set to true, do not initialize lastlog and faillog database. +# ssh-import-id: Optional. Import SSH ids +# ssh-authorized-key: Optional. Add key to user's ssh authorized keys file +# sudo: Defaults to none. Set to the sudo string you want to use, i.e. +# ALL=(ALL) NOPASSWD:ALL. To add multiple rules, use the following +# format. +# sudo: +# - ALL=(ALL) NOPASSWD:/bin/mysql +# - ALL=(ALL) ALL +# Note: Please double check your syntax and make sure it is valid. +# cloud-init does not parse/check the syntax of the sudo +# directive. +# system: Create the user as a system user. This means no home directory. +# +# Default user creation: Ubuntu Only +# Unless you define users, you will get a Ubuntu user on Ubuntu systems with the +# legacy permission (no password sudo, locked user, etc). If however, you want +# to have the ubuntu user in addition to other users, you need to instruct +# cloud-init that you also want the default user. To do this use the following +# syntax: +# users: +# default: True +# foobar: ... +# +# users[0] (the first user in users) overrides the user directive. diff --git a/doc/examples/cloud-config.txt b/doc/examples/cloud-config.txt index 1e6628d2..56a6c35a 100644 --- a/doc/examples/cloud-config.txt +++ b/doc/examples/cloud-config.txt @@ -167,7 +167,8 @@ mounts: # complete. This must be an array, and must have 7 fields. mount_default_fields: [ None, None, "auto", "defaults,nobootwait", "0", "2" ] -# add each entry to ~/.ssh/authorized_keys for the configured user +# add each entry to ~/.ssh/authorized_keys for the configured user or the +# first user defined in the user definition directive. ssh_authorized_keys: - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAGEA3FSyQwBI6Z+nCSjUUk8EEAnnkhXlukKoUPND/RRClWz2s5TCzIkd3Ou5+Cyz71X0XmazM3l5WgeErvtIwQMyT1KjNoMhoJMrJnWqQPOt5Q8zWd9qG7PBl9+eiH5qV7NZ mykey@host - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3I7VUf2l5gSn5uavROsc5HRDpZdQueUq5ozemNSj8T7enqKHOEaFoU2VoPgGEWC9RyzSQVeyD6s7APMcE82EtmW4skVEgEGSbDc1pvxzxtchBj78hJP6Cf5TCMFSXw+Fz5rF1dR23QDbN1mkHs7adr8GW4kSWqU7Q7NDwfIrJJtO7Hi42GyXtvEONHbiRPOe8stqUly7MvUoN+5kfjBM8Qqpfl2+FNhTYWpMfYdPUnE7u536WqzFmsaqJctz3gBxH9Ex7dFtrxR4qiqEr9Qtlu3xGn7Bw07/+i1D+ey3ONkZLN+LQ714cgj8fRS4Hj29SCmXp5Kt5/82cD/VN3NtHw== smoser@brickies diff --git a/doc/sources/altcloud/README b/doc/sources/altcloud/README new file mode 100644 index 00000000..87d7949a --- /dev/null +++ b/doc/sources/altcloud/README @@ -0,0 +1,65 @@ +Data souce AltCloud will be used to pick up user data on +RHEVm and vSphere. + +RHEVm: +====== +For REHVm v3.0 the userdata is injected into the VM using floppy +injection via the RHEVm dashboard "Custom Properties". The format +of the Custom Properties entry must be: +"floppyinject=user-data.txt:<base64 encoded data>" + +e.g.: To pass a simple bash script + +% cat simple_script.bash +#!/bin/bash +echo "Hello Joe!" >> /tmp/JJV_Joe_out.txt + +% base64 < simple_script.bash +IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gSm9lISIgPj4gL3RtcC9KSlZfSm9lX291dC50eHQK + +To pass this example script to cloud-init running in a RHEVm v3.0 VM +set the "Custom Properties" when creating the RHEMv v3.0 VM to: +floppyinject=user-data.txt:IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gSm9lISIgPj4gL3RtcC9KSlZfSm9lX291dC50eHQK + +NOTE: The prefix with file name must be: "floppyinject=user-data.txt:" + +It is also possible to launch a RHEVm v3.0 VM and pass optional user +data to it using the Delta Cloud. +For more inforation on Delta Cloud see: http://deltacloud.apache.org + +vSphere: +======== +For VMWare's vSphere the userdata is injected into the VM an ISO +via the cdrom. This can be done using the vSphere dashboard +by connecting an ISO image to the CD/DVD drive. + +To pass this example script to cloud-init running in a vSphere VM +set the CD/DVD drive when creating the vSphere VM to point to an +ISO on the data store. + +The ISO must contain the user data: + +For example, to pass the same simple_script.bash to vSphere: + +Create the ISO: +=============== +% mkdir my-iso + +NOTE: The file name on the ISO must be: "user-data.txt" +% cp simple_scirpt.bash my-iso/user-data.txt + +% genisoimage -o user-data.iso -r my-iso + +Verify the ISO: +=============== +% sudo mkdir /media/vsphere_iso +% sudo mount -o loop JoeV_CI_02.iso /media/vsphere_iso +% cat /media/vsphere_iso/user-data.txt +% sudo umount /media/vsphere_iso + +Then, launch the vSphere VM the ISO user-data.iso attached as a CDrom. + +It is also possible to launch a vSphere VM and pass optional user +data to it using the Delta Cloud. + +For more inforation on Delta Cloud see: http://deltacloud.apache.org diff --git a/doc/configdrive/README b/doc/sources/configdrive/README index ed9033c9..ed9033c9 100644 --- a/doc/configdrive/README +++ b/doc/sources/configdrive/README diff --git a/doc/kernel-cmdline.txt b/doc/sources/kernel-cmdline.txt index 0b77a9af..0b77a9af 100644 --- a/doc/kernel-cmdline.txt +++ b/doc/sources/kernel-cmdline.txt diff --git a/doc/nocloud/README b/doc/sources/nocloud/README index c94b206a..c94b206a 100644 --- a/doc/nocloud/README +++ b/doc/sources/nocloud/README diff --git a/doc/ovf/README b/doc/sources/ovf/README index e3ef12e0..e3ef12e0 100644 --- a/doc/ovf/README +++ b/doc/sources/ovf/README diff --git a/doc/ovf/example/ovf-env.xml b/doc/sources/ovf/example/ovf-env.xml index 13e8f104..13e8f104 100644 --- a/doc/ovf/example/ovf-env.xml +++ b/doc/sources/ovf/example/ovf-env.xml diff --git a/doc/ovf/example/ubuntu-server.ovf b/doc/sources/ovf/example/ubuntu-server.ovf index 846483a1..846483a1 100644 --- a/doc/ovf/example/ubuntu-server.ovf +++ b/doc/sources/ovf/example/ubuntu-server.ovf diff --git a/doc/ovf/make-iso b/doc/sources/ovf/make-iso index 91d0e2e5..91d0e2e5 100755 --- a/doc/ovf/make-iso +++ b/doc/sources/ovf/make-iso diff --git a/doc/ovf/ovf-env.xml.tmpl b/doc/sources/ovf/ovf-env.xml.tmpl index 8e255d43..8e255d43 100644 --- a/doc/ovf/ovf-env.xml.tmpl +++ b/doc/sources/ovf/ovf-env.xml.tmpl diff --git a/doc/ovf/ovfdemo.pem b/doc/sources/ovf/ovfdemo.pem index 5bc629c8..5bc629c8 100644 --- a/doc/ovf/ovfdemo.pem +++ b/doc/sources/ovf/ovfdemo.pem diff --git a/doc/ovf/user-data b/doc/sources/ovf/user-data index bfac51fd..bfac51fd 100644 --- a/doc/ovf/user-data +++ b/doc/sources/ovf/user-data |