Class: Ansible::Ruby::Modules::Proxmox
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Proxmox
- Defined in:
- lib/ansible/ruby/modules/generated/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.
-
#cores ⇒ Integer?
Specify number of cores per socket.
-
#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 ⇒ :yes, ...
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),must be unique if vmid is not passed.
-
#ip_address ⇒ Object?
Specifies the address the container will be assigned.
-
#memory ⇒ Integer?
Memory size in MB for instance.
-
#mounts ⇒ Hash?
Specifies additional mounts (separate disks) for the container.
-
#nameserver ⇒ Object?
Sets DNS server IP address for a container.
-
#netif ⇒ Hash?
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 ⇒ :yes, ...
Specifies whether a VM will be started during system bootup.
-
#ostemplate ⇒ String?
The template for VM creating,required only for C(state=present).
-
#password ⇒ Integer, ...
The instance root password,required only for C(state=present).
-
#pool ⇒ Object?
Proxmox VE resource pool.
-
#pubkey ⇒ Object?
Public key to add to /root/.ssh/authorized_keys.
-
#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.
-
#unprivileged ⇒ :yes, ...
Indicate if the container should be unprivileged.
-
#validate_certs ⇒ :yes, ...
Enable / disable https certificate verification.
-
#vmid ⇒ Integer?
The instance id,if not set, the next available VM ID will be fetched from ProxmoxAPI.,if not set, will be fetched from PromoxAPI based on the hostname.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #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.
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 13 attribute :api_host |
#api_password ⇒ String?
Returns the password to authenticate with,you can use PROXMOX_PASSWORD environment variable.
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 21 attribute :api_password |
#api_user ⇒ String
Returns the user to authenticate with.
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 17 attribute :api_user |
#cores ⇒ Integer?
Returns Specify number of cores per socket.
56 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 56 attribute :cores |
#cpus ⇒ Integer?
Returns numbers of allocated cpus for instance.
60 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 60 attribute :cpus |
#cpuunits ⇒ Integer?
Returns CPU weight for a VM.
91 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 91 attribute :cpuunits |
#disk ⇒ Integer?
Returns hard disk size in GB for instance.
52 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 52 attribute :disk |
#force ⇒ :yes, ...
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.
105 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 105 attribute :force |
#hostname ⇒ String?
Returns the instance hostname,required only for C(state=present),must be unique if vmid is not passed.
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 44 attribute :hostname |
#ip_address ⇒ Object?
Returns specifies the address the container will be assigned.
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 80 attribute :ip_address |
#memory ⇒ Integer?
Returns memory size in MB for instance.
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 64 attribute :memory |
#mounts ⇒ Hash?
Returns specifies additional mounts (separate disks) for the container. As a hash/dictionary defining mount points.
76 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 76 attribute :mounts |
#nameserver ⇒ Object?
Returns sets DNS server IP address for a container.
95 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 95 attribute :nameserver |
#netif ⇒ Hash?
Returns specifies network interfaces for the container. As a hash/dictionary defining interfaces.
72 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 72 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.
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 33 attribute :node |
#onboot ⇒ :yes, ...
Returns specifies whether a VM will be started during system bootup.
83 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 83 attribute :onboot |
#ostemplate ⇒ String?
Returns the template for VM creating,required only for C(state=present).
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 48 attribute :ostemplate |
#password ⇒ Integer, ...
Returns the instance root password,required only for C(state=present).
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 40 attribute :password |
#pool ⇒ Object?
Returns Proxmox VE resource pool.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 37 attribute :pool |
#pubkey ⇒ Object?
Returns Public key to add to /root/.ssh/authorized_keys. This was added on Proxmox 4.2, it is ignored for earlier versions.
113 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 113 attribute :pubkey |
#searchdomain ⇒ Object?
Returns sets DNS search domain for a container.
98 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 98 attribute :searchdomain |
#state ⇒ :present, ...
Returns Indicate desired state of the instance.
109 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 109 attribute :state |
#storage ⇒ String?
Returns target storage.
87 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 87 attribute :storage |
#swap ⇒ Integer?
Returns swap memory size in MB for instance.
68 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 68 attribute :swap |
#timeout ⇒ Integer?
Returns timeout for operations.
101 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 101 attribute :timeout |
#unprivileged ⇒ :yes, ...
Returns Indicate if the container should be unprivileged.
116 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 116 attribute :unprivileged |
#validate_certs ⇒ :yes, ...
Returns enable / disable https certificate verification.
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 29 attribute :validate_certs |
#vmid ⇒ Integer?
Returns the instance id,if not set, the next available VM ID will be fetched from ProxmoxAPI.,if not set, will be fetched from PromoxAPI based on the hostname.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 25 attribute :vmid |