Nova Profile¶
The nova profile instantiates nodes that are associated with nova server instances.
Properties¶
Password for the administrator account.
Whether the disk partition is done automatically.
Name of availability zone for running the server.
Whether config drive should be enabled for the server.
ID of flavor used for the server.
ID of image to be used for the new server.
Name of Nova keypair to be injected to server.
Name of the server. When omitted, the node name will be used.
User data to be exposed by the metadata server.
List properties:
- boot_index
- Define the boot order of the device
- delete_on_termination
- Whether to delete the volume when the server stops.
- destination_type
- Volume destination type, must be ‘volume’ or ‘local’
- device_name
- Name of the device(e.g. vda, xda, ….).
- device_type
- Type of the device(e.g. disk, cdrom, …).
- disk_bus
- Bus of the device.
- guest_format
- Specifies the disk file system format(e.g. swap, ephemeral, …).
- source_type
- Volume source type, must be one of ‘image’, ‘snapshot’, ‘volume’ or ‘blank’
- uuid
- ID of the source image, snapshot or volume
- volume_size
- Size of the block device in MB(for swap) and in GB(for other formats)
Customized security context for operating servers.
A collection of key/value pairs to be associated with the server created. Both key and value must be <=255 chars.
List properties:
- fixed_ip
- Fixed IP to be used by the network.
- floating_ip
- The floating IP address to be associated with this port.
- floating_network
- The network on which to create a floating IP
- network
- Name or ID of network to create a port on.
- port
- Port ID to be used by the network.
- vnic_type
- Define vnic_type to be used by port
- security_groups
- List properties:
- Name of a security group
List properties:
- contents
- Contents of the file to be injected.
- path
- In-instance path for the file to be injected.
A collection of key/value pairs to be associated with the Scheduler hints. Both key and value must be <=255 chars.
List properties:
- Name of a security group
Sample¶
Below is a typical spec for a nova profile:
type: os.nova.server
version: 1.0
properties:
name: cirros_server
flavor: 1
image: "cirros-0.4.0-x86_64-disk"
key_name: oskey
networks:
- network: private
metadata:
test_key: test_value
user_data: |
#!/bin/sh
echo 'hello, world' > /tmp/test_file