rsnt_translations
56,430
edits
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
<b>The first time your instance is launched</b>, you can customize it using cloudInit. This can be done either | <b>The first time your instance is launched</b>, you can customize it using cloudInit. This can be done either | ||
* via the OpenStack command-line interface, or | * via the OpenStack command-line interface, or | ||
* by pasting your cloudInit script in the | * by pasting your cloudInit script in the <i>Customization Script</i> field of the OpenStack dashboard (<i>Project-->Compute-->Instances-->Launch instance</i> button, <i>Configuration</i> option). | ||
==Add users with cloudInit during VM creation== <!--T:30--> | ==Add users with cloudInit during VM creation== <!--T:30--> | ||
Line 84: | Line 84: | ||
<!--T:32--> | <!--T:32--> | ||
For more about the YAML format used by cloudInit, see [http://www.yaml.org/spec/1.2/spec.html#Preview YAML Preview]. Note that YAML is very picky about white space formatting, so that there must be a space after the "-" before your public key string. Also, this configuration overwrites the default user that is added when no cloudInit script is specified, so the users listed in this configuration script will be the | For more about the YAML format used by cloudInit, see [http://www.yaml.org/spec/1.2/spec.html#Preview YAML Preview]. Note that YAML is very picky about white space formatting, so that there must be a space after the "-" before your public key string. Also, this configuration overwrites the default user that is added when no cloudInit script is specified, so the users listed in this configuration script will be the <i>only</i> users on the newly created VM. It is therefore vital to have at least one user with sudo permission. More users can be added by simply including more <code>- name: username</code> sections. | ||
<!--T:33--> | <!--T:33--> | ||
If you wish to preserve the default user created by the distribution (users <code>debian, centos, ubuntu,</code> | If you wish to preserve the default user created by the distribution (users <code>debian, centos, ubuntu,</code> <i>etc.</i>), use the following form: | ||
<!--T:34--> | <!--T:34--> |