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
13 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 13 attribute :api_host |
#api_password ⇒ String?
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 21 attribute :api_password |
#api_user ⇒ String
17 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 17 attribute :api_user |
#cores ⇒ Integer?
56 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 56 attribute :cores |
#cpus ⇒ Integer?
60 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 60 attribute :cpus |
#cpuunits ⇒ Integer?
91 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 91 attribute :cpuunits |
#disk ⇒ Integer?
52 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 52 attribute :disk |
#force ⇒ :yes, ...
105 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 105 attribute :force |
#hostname ⇒ String?
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 44 attribute :hostname |
#ip_address ⇒ Object?
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 80 attribute :ip_address |
#memory ⇒ Integer?
64 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 64 attribute :memory |
#mounts ⇒ Hash?
76 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 76 attribute :mounts |
#nameserver ⇒ Object?
95 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 95 attribute :nameserver |
#netif ⇒ Hash?
72 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 72 attribute :netif |
#node ⇒ String?
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 33 attribute :node |
#onboot ⇒ :yes, ...
83 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 83 attribute :onboot |
#ostemplate ⇒ String?
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 48 attribute :ostemplate |
#password ⇒ Integer, ...
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 40 attribute :password |
#pool ⇒ Object?
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 37 attribute :pool |
#pubkey ⇒ Object?
113 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 113 attribute :pubkey |
#searchdomain ⇒ Object?
98 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 98 attribute :searchdomain |
#state ⇒ :present, ...
109 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 109 attribute :state |
#storage ⇒ String?
87 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 87 attribute :storage |
#swap ⇒ Integer?
68 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 68 attribute :swap |
#timeout ⇒ Integer?
101 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 101 attribute :timeout |
#unprivileged ⇒ :yes, ...
116 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 116 attribute :unprivileged |
#validate_certs ⇒ :yes, ...
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 29 attribute :validate_certs |
#vmid ⇒ Integer?
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/misc/proxmox.rb', line 25 attribute :vmid |