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

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

Methods inherited from Base

#ansible_name, #to_h

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_hostString

Returns the host of the Proxmox VE cluster.

Returns:

  • (String)

    the host of the Proxmox VE cluster



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

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



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

attribute :api_password

#api_userString

Returns the user to authenticate with.

Returns:

  • (String)

    the user to authenticate with



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

attribute :api_user

#coresInteger?

Returns Specify number of cores per socket.

Returns:

  • (Integer, nil)

    Specify number of cores per socket.



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

attribute :cores

#cpusInteger?

Returns numbers of allocated cpus for instance.

Returns:

  • (Integer, nil)

    numbers of allocated cpus for instance



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

attribute :cpus

#cpuunitsInteger?

Returns CPU weight for a VM.

Returns:

  • (Integer, nil)

    CPU weight for a VM



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

attribute :cpuunits

#diskInteger?

Returns hard disk size in GB for instance.

Returns:

  • (Integer, nil)

    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.

Returns:

  • (:yes, :no, 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



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

attribute :force

#hostnameString?

Returns the instance hostname,required only for C(state=present),must be unique if vmid is not passed.

Returns:

  • (String, nil)

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

Returns specifies the address the container will be assigned.

Returns:

  • (Object, nil)

    specifies the address the container will be assigned



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

attribute :ip_address

#memoryInteger?

Returns memory size in MB for instance.

Returns:

  • (Integer, nil)

    memory size in MB for instance



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

attribute :memory

#mountsHash?

Returns specifies additional mounts (separate disks) for the container. As a hash/dictionary defining mount points.

Returns:

  • (Hash, nil)

    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

#nameserverObject?

Returns sets DNS server IP address for a container.

Returns:

  • (Object, nil)

    sets DNS server IP address for a container



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

attribute :nameserver

#netifHash?

Returns specifies network interfaces for the container. As a hash/dictionary defining interfaces.

Returns:

  • (Hash, nil)

    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

#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



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.

Returns:

  • (:yes, :no, nil)

    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

#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)



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

attribute :ostemplate

#passwordInteger, ...

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

Returns:

  • (Integer, String, nil)

    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

#poolObject?

Returns Proxmox VE resource pool.

Returns:

  • (Object, nil)

    Proxmox VE resource pool



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

attribute :pool

#pubkeyObject?

Returns Public key to add to /root/.ssh/authorized_keys. This was added on Proxmox 4.2, it is ignored for earlier versions.

Returns:

  • (Object, nil)

    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

#searchdomainObject?

Returns sets DNS search domain for a container.

Returns:

  • (Object, nil)

    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.

Returns:

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

    Indicate desired state of the instance



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

attribute :state

#storageString?

Returns target storage.

Returns:

  • (String, nil)

    target storage



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

attribute :storage

#swapInteger?

Returns swap memory size in MB for instance.

Returns:

  • (Integer, nil)

    swap memory size in MB for instance



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

attribute :swap

#timeoutInteger?

Returns timeout for operations.

Returns:

  • (Integer, nil)

    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.

Returns:

  • (:yes, :no, nil)

    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.

Returns:

  • (:yes, :no, nil)

    enable / disable https certificate verification



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

attribute :validate_certs

#vmidInteger?

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.

Returns:

  • (Integer, nil)

    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