Class: Ansible::Ruby::Modules::Profitbricks

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb

Overview

Create, destroy, update, start, stop, and reboot a ProfitBricks virtual machine. When the virtual machine is created it can optionally wait for it to be ‘running’ before returning. This module has a dependency on profitbricks >= 1.0.0

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

#assign_public_ipBoolean?

Returns This will assign the machine to the public LAN. If no LAN exists with public Internet access it is created.

Returns:

  • (Boolean, nil)

    This will assign the machine to the public LAN. If no LAN exists with public Internet access it is created.



55
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 55

attribute :assign_public_ip

#auto_incrementBoolean?

Returns Whether or not to increment a single number in the name for created virtual machines.

Returns:

  • (Boolean, nil)

    Whether or not to increment a single number in the name for created virtual machines.



11
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 11

attribute :auto_increment

#bus:IDE, ...

Returns The bus type for the volume.

Returns:

  • (:IDE, :VIRTIO, nil)

    The bus type for the volume.



39
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 39

attribute :bus

#coresInteger?

Returns The number of CPU cores to allocate to the virtual machine.

Returns:

  • (Integer, nil)

    The number of CPU cores to allocate to the virtual machine.



27
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 27

attribute :cores

#countInteger?

Returns The number of virtual machines to create.

Returns:

  • (Integer, nil)

    The number of virtual machines to create.



47
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 47

attribute :count

#datacenterString?

Returns The Datacenter to provision this virtual machine.

Returns:

  • (String, nil)

    The Datacenter to provision this virtual machine.



23
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 23

attribute :datacenter

#imageString

Returns The system image ID for creating the virtual machine, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8.

Returns:

  • (String)

    The system image ID for creating the virtual machine, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8.



19
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 19

attribute :image

#instance_idsArray<String>, ...

Returns list of instance ids, currently only used when state=‘absent’ to remove instances.

Returns:

  • (Array<String>, String, nil)

    list of instance ids, currently only used when state=‘absent’ to remove instances.



43
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 43

attribute :instance_ids

#lanInteger?

Returns The ID of the LAN you wish to add the servers to.

Returns:

  • (Integer, nil)

    The ID of the LAN you wish to add the servers to.



59
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 59

attribute :lan

#location:"us/las", ...

Returns The datacenter location. Use only if you want to create the Datacenter or else this value is ignored.

Returns:

  • (:"us/las", :"us/lasdev", :"de/fra", :"de/fkb", nil)

    The datacenter location. Use only if you want to create the Datacenter or else this value is ignored.



51
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 51

attribute :location

#nameString

Returns The name of the virtual machine.

Returns:

  • (String)

    The name of the virtual machine.



15
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 15

attribute :name

#ramInteger?

Returns The amount of memory to allocate to the virtual machine.

Returns:

  • (Integer, nil)

    The amount of memory to allocate to the virtual machine.



31
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 31

attribute :ram

#remove_boot_volume:yes, ...

Returns remove the bootVolume of the virtual machine you’re destroying.

Returns:

  • (:yes, :no, nil)

    remove the bootVolume of the virtual machine you’re destroying.



77
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 77

attribute :remove_boot_volume

#state:running, ...

Returns create or terminate instances.

Returns:

  • (:running, :stopped, :absent, :present, nil)

    create or terminate instances



81
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 81

attribute :state

#subscription_passwordObject?

Returns THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.

Returns:

  • (Object, nil)

    THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.



66
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 66

attribute :subscription_password

#subscription_userObject?

Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.

Returns:

  • (Object, nil)

    The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.



63
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 63

attribute :subscription_user

#volume_sizeInteger?

Returns The size in GB of the boot volume.

Returns:

  • (Integer, nil)

    The size in GB of the boot volume.



35
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 35

attribute :volume_size

#wait:yes, ...

Returns wait for the instance to be in state ‘running’ before returning.

Returns:

  • (:yes, :no, nil)

    wait for the instance to be in state ‘running’ before returning



69
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 69

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



73
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks.rb', line 73

attribute :wait_timeout