Class: Ansible::Ruby::Modules::Proxmox
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Proxmox
- Defined in:
- lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb
Overview
allows you to create/delete/stop instances in Proxmox VE cluster Starting in Ansible 2.1, it automatically detects containerization type (lxc for PVE 4, openvz for older)
Instance Method Summary collapse
-
#api_host ⇒ String
The host of the Proxmox VE cluster.
-
#api_password ⇒ String?
The password to authenticate with,you can use PROXMOX_PASSWORD environment variable.
-
#api_user ⇒ String
The user to authenticate with.
-
#cpus ⇒ Integer?
Numbers of allocated cpus for instance.
-
#cpuunits ⇒ Integer?
CPU weight for a VM.
-
#disk ⇒ Integer?
Hard disk size in GB for instance.
-
#force ⇒ Boolean?
Forcing operations,can be used only with states C(present), C(stopped), C(restarted),with C(state=present) force option allow to overwrite existing container,with states C(stopped) , C(restarted) allow to force stop instance.
-
#hostname ⇒ String?
The instance hostname,required only for C(state=present).
-
#ip_address ⇒ Object?
Specifies the address the container will be assigned.
-
#memory ⇒ Integer?
Memory size in MB for instance.
-
#nameserver ⇒ Object?
Sets DNS server IP address for a container.
-
#netif ⇒ String?
Specifies network interfaces for the container.
-
#node ⇒ String?
Proxmox VE node, when new VM will be created,required only for C(state=present),for another states will be autodiscovered.
-
#onboot ⇒ Boolean?
Specifies whether a VM will be started during system bootup.
-
#ostemplate ⇒ String?
The template for VM creating,required only for C(state=present).
-
#password ⇒ String?
The instance root password,required only for C(state=present).
-
#searchdomain ⇒ Object?
Sets DNS search domain for a container.
-
#state ⇒ :present, ...
Indicate desired state of the instance.
-
#storage ⇒ String?
Target storage.
-
#swap ⇒ Integer?
Swap memory size in MB for instance.
-
#timeout ⇒ Integer?
Timeout for operations.
-
#validate_certs ⇒ Boolean?
Enable / disable https certificate verification.
-
#vmid ⇒ String
The instance id.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#api_host ⇒ String
Returns the host of the Proxmox VE cluster.
12 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 12 attribute :api_host |
#api_password ⇒ String?
Returns the password to authenticate with,you can use PROXMOX_PASSWORD environment variable.
20 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 20 attribute :api_password |
#api_user ⇒ String
Returns the user to authenticate with.
16 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 16 attribute :api_user |
#cpus ⇒ Integer?
Returns numbers of allocated cpus for instance.
52 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 52 attribute :cpus |
#cpuunits ⇒ Integer?
Returns CPU weight for a VM.
79 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 79 attribute :cpuunits |
#disk ⇒ Integer?
Returns hard disk size in GB for instance.
48 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 48 attribute :disk |
#force ⇒ Boolean?
Returns forcing operations,can be used only with states C(present), C(stopped), C(restarted),with C(state=present) force option allow to overwrite existing container,with states C(stopped) , C(restarted) allow to force stop instance.
93 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 93 attribute :force |
#hostname ⇒ String?
Returns the instance hostname,required only for C(state=present).
40 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 40 attribute :hostname |
#ip_address ⇒ Object?
Returns specifies the address the container will be assigned.
68 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 68 attribute :ip_address |
#memory ⇒ Integer?
Returns memory size in MB for instance.
56 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 56 attribute :memory |
#nameserver ⇒ Object?
Returns sets DNS server IP address for a container.
83 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 83 attribute :nameserver |
#netif ⇒ String?
Returns specifies network interfaces for the container.
64 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 64 attribute :netif |
#node ⇒ String?
Returns Proxmox VE node, when new VM will be created,required only for C(state=present),for another states will be autodiscovered.
32 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 32 attribute :node |
#onboot ⇒ Boolean?
Returns specifies whether a VM will be started during system bootup.
71 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 71 attribute :onboot |
#ostemplate ⇒ String?
Returns the template for VM creating,required only for C(state=present).
44 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 44 attribute :ostemplate |
#password ⇒ String?
Returns the instance root password,required only for C(state=present).
36 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 36 attribute :password |
#searchdomain ⇒ Object?
Returns sets DNS search domain for a container.
86 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 86 attribute :searchdomain |
#state ⇒ :present, ...
Returns Indicate desired state of the instance.
97 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 97 attribute :state |
#storage ⇒ String?
Returns target storage.
75 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 75 attribute :storage |
#swap ⇒ Integer?
Returns swap memory size in MB for instance.
60 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 60 attribute :swap |
#timeout ⇒ Integer?
Returns timeout for operations.
89 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 89 attribute :timeout |
#validate_certs ⇒ Boolean?
Returns enable / disable https certificate verification.
28 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 28 attribute :validate_certs |
#vmid ⇒ String
Returns the instance id.
24 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 24 attribute :vmid |