ovm vm
Overview
This resource allows you manage VM running on Server. Here is an example on how to use this:
ovm_vm { 'default/repo_1/server_pool_1/ovs.example.com/myvm1':
ensure => 'present',
boot_order => ['PXE', 'DISK', 'CDROM'],
cpu_count => '2',
cpu_count_limit => '2',
cpu_priority => '75',
cpu_utilization_cap => '100',
description => 'Test test',
high_availability => 'false',
keymap_name => 'en-us',
memory => '1024',
memory_limit => '1024',
os_type => 'Cent OS 7',
restart_action_on_crash => 'RESTART',
vm_domain_type => 'XEN_HVM',
vm_mouse_type => 'OS_DEFAULT',
vm_run_state => 'STOPPED',
vm_start_policy => 'CURRENT_SERVER',
network_adapters => { 'adapter_1' => { 'ipAddresses' => [ {"type" => "IPV4", "configType" => "STATIC", "address" => "192.168.56.11", "netmask" => "255.255.255.0" }] } }
}
Attributes
Attribute Name | Short Description |
---|---|
boot_order | The property allows to manage Boot Order for selected Oracle VM Virtual Machine. |
cpu_count | The property allows to manage CPU Count for selected Oracle VM Virtual Machine. |
cpu_count_limit | The property allows to manage CPU Count Limit for selected Oracle VM Virtual Machine. |
cpu_priority | The property allows to manage CPU Priority for selected Oracle VM Virtual Machine. |
cpu_utilization_cap | The property allows to manage CPU Utilization Cap for selected Oracle VM Virtual Machine. |
description | Specifies description of Oracle Virtual Machine. |
disable_corrective_change | Disable the modification of a resource when Puppet decides it is a corrective change. |
disable_corrective_ensure | Disable the creation or removal of a resource when Puppet decides is a corrective change. |
ensure | The basic property that the resource should be in. |
high_availability | Toggles High Avalablilty of Oracle Virtual Machine. |
id | This parameter is responsible for the mapping of the id of the Oracle VM object. |
keymap_name | Specifies keymap of Oracle Virtual Machine. |
manager_name | The name of the OVM manager. |
memory | Specifies RAM memory for Oracle Virtual Machine. |
memory_limit | Specifies RAM memory limit of Oracle Virtual Machine. |
name | The name of the OVM VM (Virtual Machine). |
network_adapters | Specifies Network Adapters for Oracle Virtual Machine. |
network_install_path | Specifies network install path for Oracle Virtual Machine. |
os_type | Specifies selected Operating System type for Oracle Virtual Machine. |
provider | resource. |
repository_name | The name of the repository. |
restart_action_on_crash | Specifies Restart Action On Crash for Oracle Virtual Machine (how VM should behave). |
server_name | The name of the ovm_server. |
server_pool_name | The name of the storage pool. |
virtual_disks | Specifies the Virtual Disks of Oracle Virtual Machine. |
vm_clone_definition | The name of the OVM VM (Virtual Machine). |
vm_domain_type | Specifies Oracle Virtual Machine domain type. |
vm_mouse_type | Specifies Oracle Virtual Machine mouse type. |
vm_name | The name of the ovm_vm. |
vm_run_state | Specifies Running State for Oracle Virtual Machine. |
vm_start_policy | Specifies Start Polity Oracle Virtual Machine. |
boot_order
The property allows to manage Boot Order for selected Oracle VM Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
boot_order => ['DISK', 'CDROM'],
...
}
cpu_count
The property allows to manage CPU Count for selected Oracle VM Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
cpu_count => 2,
...
}
cpu_count_limit
The property allows to manage CPU Count Limit for selected Oracle VM Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
cpu_count_limit => '2',
...
}
cpu_priority
The property allows to manage CPU Priority for selected Oracle VM Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
cpu_priority => 75,
...
}
cpu_utilization_cap
The property allows to manage CPU Utilization Cap for selected Oracle VM Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
cpu_utilization_cap => 90,
...
}
description
Specifies description of Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
description => 'Virtual Machine on ovmserver 1',
...
}
disable_corrective_change
Disable the modification of a resource when Puppet decides it is a corrective change.
(requires easy_type V2.11.0 or higher)
When using a Puppet Server, Puppet knows about adaptive and corrective changes. A corrective change is when Puppet notices that the resource has changed, but the catalog has not changed. This can occur for example, when a user, by accident or willingly, changed something on the system that Puppet is managing. The normal Puppet process then repairs this and puts the resource back in the state as defined in the catalog. This process is precisely what you want most of the time, but not always. This can sometimes also occur when a hardware or network error occurs. Then Puppet cannot correctly determine the current state of the system and thinks the resource is changed, while in fact, it is not. Letting Puppet recreate remove or change the resource in these cases, is NOT wat you want.
Using the `disable_corrective_change’ parameter, you can disable corrective changes on the current resource.
Here is an example of this:
crucial_resource {'be_carefull':
...
disable_corrective_change => true,
...
}
When a corrective ensure does happen on the resource Puppet will not modify the resource
and signal an error:
Error: Corrective change present requested by catalog, but disabled by parameter disable_corrective_change
Error: /Stage[main]/Main/Crucial_resource[be_carefull]/parameter: change from '10' to '20' failed: Corrective change present requested by catalog, but disabled by parameter disable_corrective_change. (corrective)
disable_corrective_ensure
Disable the creation or removal of a resource when Puppet decides is a corrective change.
(requires easy_type V2.11.0 or higher)
When using a Puppet Server, Puppet knows about adaptive and corrective changes. A corrective change is when Puppet notices that the resource has changed, but the catalog has not changed. This can occur for example, when a user, by accident or willingly, changed something on the system that Puppet is managing. The normal Puppet process then repairs this and puts the resource back in the state as defined in the catalog. This process is precisely what you want most of the time, but not always. This can sometimes also occur when a hardware or network error occurs. Then Puppet cannot correctly determine the current state of the system and thinks the resource is changed, while in fact, it is not. Letting Puppet recreate remove or change the resource in these cases, is NOT wat you want.
Using the `disable_corrective_ensure’ parameter, you can disable corrective ensure present or ensure absent actions on the current resource.
Here is an example of this:
crucial_resource {'be_carefull':
ensure => 'present',
...
disable_corrective_ensure => true,
...
}
When a corrective ensure does happen on the resource Puppet will not create or remove the resource
and signal an error:
Error: Corrective ensure present requested by catalog, but disabled by parameter disable_corrective_ensure.
Error: /Stage[main]/Main/Crucial_resource[be_carefull]/ensure: change from 'absent' to 'present' failed: Corrective ensure present requested by catalog, but disabled by parameter disable_corrective_ensure. (corrective)
ensure
The basic property that the resource should be in.
Valid values are present
, absent
.
high_availability
Toggles High Avalablilty of Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
high_availability => 'true',
...
}
Valid values are true
, false
.
id
This parameter is responsible for the mapping of the id of the Oracle VM object.
keymap_name
Specifies keymap of Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
keymap_name => 'en-us',
...
}
manager_name
The name of the OVM manager.
memory
Specifies RAM memory for Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
memory => 1024,
}
memory_limit
Specifies RAM memory limit of Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
memory_limit => 1024,
}
name
The name of the OVM VM (Virtual Machine).
network_adapters
Specifies Network Adapters for Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
network_adapters => {
'00:21:f6:87:bf:2a' => {
'mac_address' => '00:21:f6:87:bf:2a',
'network_name' => '192.168.56.0',
'description' => 'vnic 1'
},
'adapter_2' => {
'mac_address' => '00:21:f6:87:bf:2a',
'network_name' => '192.168.56.0',
'description' => 'vnic 2'
}
}
...
}
network_install_path
Specifies network install path for Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
network_install_path => 'install/uri/path',
}
os_type
Specifies selected Operating System type for Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
os_type => 'Cent OS 7',
}
provider
The specific backend to use for this ovm_vm
resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.Available providers are:
- simple
- Manage OVM Virtual Machines on external servers.
repository_name
The name of the repository.
restart_action_on_crash
Specifies Restart Action On Crash for Oracle Virtual Machine (how VM should behave). Here is example how to do this:
ovm_vm { ‘default/mypool1/ovmserver1.example.com:myvm2’: ensure => ‘present’, restart_action_on_crash => ‘RESTART’, }
server_name
The name of the ovm_server.
server_pool_name
The name of the storage pool.
This is the second part of the title.
ovm_...{my_manager:pool/....:
...
}
virtual_disks
Specifies the Virtual Disks of Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
...
virtual_disks => ['0:repo01/vm01_disk']
...
}
vm_clone_definition
The name of the OVM VM (Virtual Machine).
vm_domain_type
Specifies Oracle Virtual Machine domain type. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
vm_domain_type => 'XEN_HVM',
}
vm_mouse_type
Specifies Oracle Virtual Machine mouse type. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
vm_mouse_type => 'OS_DEFAULT',
}
vm_name
The name of the ovm_vm.
vm_run_state
Specifies Running State for Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
vm_run_state => 'STOPPED',
}
vm_start_policy
Specifies Start Polity Oracle Virtual Machine. Here is example how to do this:
ovm_vm { 'default/mypool1/ovmserver1.example.com:myvm2':
ensure => 'present',
vm_start_policy => 'CURRENT_SERVER',
}