Class: Ansible::Ruby::Modules::Proxmox

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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_hostString

Returns the host of the Proxmox VE cluster.

Returns:

  • (String)

    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_passwordString?

Returns the password to authenticate with,you can use PROXMOX_PASSWORD environment variable.

Returns:

  • (String, nil)

    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_userString

Returns the user to authenticate with.

Returns:

  • (String)

    the user to authenticate with



16
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 16

attribute :api_user

#cpusInteger?

Returns numbers of allocated cpus for instance.

Returns:

  • (Integer, nil)

    numbers of allocated cpus for instance



52
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 52

attribute :cpus

#cpuunitsInteger?

Returns CPU weight for a VM.

Returns:

  • (Integer, nil)

    CPU weight for a VM



79
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 79

attribute :cpuunits

#diskInteger?

Returns hard disk size in GB for instance.

Returns:

  • (Integer, nil)

    hard disk size in GB for instance



48
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 48

attribute :disk

#forceBoolean?

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.

Returns:

  • (Boolean, nil)

    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

#hostnameString?

Returns the instance hostname,required only for C(state=present).

Returns:

  • (String, nil)

    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_addressObject?

Returns specifies the address the container will be assigned.

Returns:

  • (Object, nil)

    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

#memoryInteger?

Returns memory size in MB for instance.

Returns:

  • (Integer, nil)

    memory size in MB for instance



56
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 56

attribute :memory

#nameserverObject?

Returns sets DNS server IP address for a container.

Returns:

  • (Object, nil)

    sets DNS server IP address for a container



83
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 83

attribute :nameserver

#netifString?

Returns specifies network interfaces for the container.

Returns:

  • (String, nil)

    specifies network interfaces for the container



64
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 64

attribute :netif

#nodeString?

Returns Proxmox VE node, when new VM will be created,required only for C(state=present),for another states will be autodiscovered.

Returns:

  • (String, nil)

    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

#onbootBoolean?

Returns specifies whether a VM will be started during system bootup.

Returns:

  • (Boolean, nil)

    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

#ostemplateString?

Returns the template for VM creating,required only for C(state=present).

Returns:

  • (String, nil)

    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

#passwordString?

Returns the instance root password,required only for C(state=present).

Returns:

  • (String, nil)

    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

#searchdomainObject?

Returns sets DNS search domain for a container.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:present, :started, :absent, :stopped, :restarted, nil)

    Indicate desired state of the instance



97
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 97

attribute :state

#storageString?

Returns target storage.

Returns:

  • (String, nil)

    target storage



75
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 75

attribute :storage

#swapInteger?

Returns swap memory size in MB for instance.

Returns:

  • (Integer, nil)

    swap memory size in MB for instance



60
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 60

attribute :swap

#timeoutInteger?

Returns timeout for operations.

Returns:

  • (Integer, nil)

    timeout for operations



89
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 89

attribute :timeout

#validate_certsBoolean?

Returns enable / disable https certificate verification.

Returns:

  • (Boolean, nil)

    enable / disable https certificate verification



28
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 28

attribute :validate_certs

#vmidString

Returns the instance id.

Returns:

  • (String)

    the instance id



24
# File 'lib/ansible/ruby/modules/generated/extras/cloud/misc/proxmox.rb', line 24

attribute :vmid