ovirt - oVirt/RHEV platform management

Author:Vincent Van der Kussen

Synopsis

New in version 1.4.

allows you to create new instances, either from scratch or an image, in addition to deleting or stopping instances on the oVirt/RHEV platform

Options

parameter required default choices comments
disk_alloc no thin
  • thin
  • preallocated
define if disk is thin or preallocated
disk_int no virtio
  • virtio
  • ide
interface type of the disk
image no
    template to use for the instance
    instance_cores no 1
      define the instance's number of cores
      instance_cpus no 1
        the instance's number of cpu's
        instance_disksize no
          size of the instance's disk in GB
          instance_mem no
            the instance's amount of memory in MB
            instance_name yes
              the name of the instance to use
              instance_network no rhevm
                the logical network the machine should belong to
                instance_nic no
                  name of the network interface in oVirt/RHEV
                  instance_os no
                    type of Operating System
                    instance_type no server
                    • server
                    • desktop
                    define if the instance is a server or desktop
                    password yes
                      password of the user to authenticate with
                      region no
                        the oVirt/RHEV datacenter where you want to deploy to
                        resource_type no
                        • new
                        • template
                        whether you want to deploy an image or create an instance from scratch.
                        sdomain no
                          the Storage Domain where you want to create the instance's disk on.
                          state no present
                          • present
                          • absent
                          • shutdown
                          • started
                          • restarted
                          create, terminate or remove instances
                          url yes
                            the url of the oVirt instance
                            user yes
                              the user to authenticate with
                              zone no
                                deploy the image to this oVirt cluster

                                Note

                                Requires ovirt-engine-sdk

                                Examples


                                # Basic example provisioning from image.
                                
                                action: ovirt >
                                    user=admin@internal
                                    url=https://ovirt.example.com
                                    instance_name=ansiblevm04
                                    password=secret
                                    image=centos_64
                                    zone=cluster01
                                    resource_type=template"
                                
                                # Full example to create new instance from scratch
                                action: ovirt >
                                    instance_name=testansible
                                    resource_type=new
                                    instance_type=server
                                    user=admin@internal
                                    password=secret
                                    url=https://ovirt.example.com
                                    instance_disksize=10
                                    zone=cluster01
                                    region=datacenter1
                                    instance_cpus=1
                                    instance_nic=nic1
                                    instance_network=rhevm
                                    instance_mem=1000
                                    disk_alloc=thin
                                    sdomain=FIBER01
                                    instance_cores=1
                                    instance_os=rhel_6x64
                                    disk_int=virtio"
                                
                                # stopping an instance
                                action: ovirt >
                                    instance_name=testansible
                                    state=stopped
                                    user=admin@internal
                                    password=secret
                                    url=https://ovirt.example.com
                                
                                # starting an instance
                                action: ovirt >
                                    instance_name=testansible
                                    state=started
                                    user=admin@internal
                                    password=secret
                                    url=https://ovirt.example.com
                                

                                Table Of Contents

                                Previous topic

                                nova_keypair - Add/Delete key pair from nova

                                Next topic

                                quantum_floating_ip - Add/Remove floating IP from an instance