Automating VM creation: Difference between revisions
No edit summary |
|||
Line 3: | Line 3: | ||
==Using CloudInit YAML Files== | ==Using CloudInit YAML Files== | ||
The creation of CloudInit files is not covered here, see instead the official CloudInit documentation. When you are creating a new VM a CloudInit file can be used to describe how the VM is to be setup beyond the selected image. CloudInit files can be used with the Horizon dashboard (web GUI), the CLI, or the Python API. Here we describe how to use a CloudIinit file with Horizon. | |||
* Begin by clicking [[File:Launch-Instance-Button.png]] as described in [[Cloud_Quick_Start#Launching_a_VM]]. | |||
* '''Before''' clicking ''Launch'', select the ''Post-Creation'' tab. Then specify your ''Customization Script Source'', in this case a CloudInit YAML file, by either coping and pasting into a text box (Direct Input) or uploading from a file from your desktop computer (File). Note that older versions of OpenStack, in particular IceHouse, only provided a text box to copy and past your CloudInit file into. | |||
* | |||
==Using Heat Templates== | ==Using Heat Templates== |
Revision as of 17:05, 22 June 2016
TODO: finish writing up these sections and add more setup files and test/streamline setup files. |
The below virtual machine (VM) setup files are intended to be used to quickly create VMs and clusters of VMs. The files come in two forms, Heat templates, and CloudInit files; both use the YAML file format. CloudInit files are used to initialize a particular VM and run within that VM. They can be used to update the operating system, install and configuring applications, create files, run commands, and create users and groups. Heat templates are even more powerful. They can create multiple VMs at once, configure security groups to access VMs from the outside world, create and configure networks, create and attach volumes to VMs, and pass information to VMs about the network topology. They can also be used in conjunction with CloudInit files.
Using CloudInit YAML Files
The creation of CloudInit files is not covered here, see instead the official CloudInit documentation. When you are creating a new VM a CloudInit file can be used to describe how the VM is to be setup beyond the selected image. CloudInit files can be used with the Horizon dashboard (web GUI), the CLI, or the Python API. Here we describe how to use a CloudIinit file with Horizon.
- Begin by clicking
as described in Cloud_Quick_Start#Launching_a_VM.
- Before clicking Launch, select the Post-Creation tab. Then specify your Customization Script Source, in this case a CloudInit YAML file, by either coping and pasting into a text box (Direct Input) or uploading from a file from your desktop computer (File). Note that older versions of OpenStack, in particular IceHouse, only provided a text box to copy and past your CloudInit file into.
Using Heat Templates
Available Setups
Setup | Description | Type | Status | Link |
---|---|---|---|---|
Hadoop+Spark | Creates a Hadoop cluster with Spark configured to run ontop of HDFS and submit jobs using YARN. | Heat Template | Has been used successfully with the ubuntu-server-14.04-amd64 image and the c1-7.5gb-30 flavor at west-cloud. Needs further testing and streamlining. | https://github.com/cgeroux/heat-hadoop-spark |