Class: Ansible::Ruby::Modules::Profitbricks
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Profitbricks
- Defined in:
- lib/ansible/ruby/modules/generated/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
-
#assign_public_ip ⇒ :yes, ...
This will assign the machine to the public LAN.
-
#auto_increment ⇒ :yes, ...
Whether or not to increment a single number in the name for created virtual machines.
-
#bus ⇒ :IDE, ...
The bus type for the volume.
-
#cores ⇒ Integer?
The number of CPU cores to allocate to the virtual machine.
-
#count ⇒ Integer?
The number of virtual machines to create.
-
#cpu_family ⇒ :AMD_OPTERON, ...
The CPU family type to allocate to the virtual machine.
-
#datacenter ⇒ String?
The datacenter to provision this virtual machine.
-
#image ⇒ String
The system image ID for creating the virtual machine, e.g.
-
#image_password ⇒ Object?
Password set for the administrative user.
-
#instance_ids ⇒ Array<String>, ...
List of instance ids, currently only used when state=‘absent’ to remove instances.
-
#lan ⇒ Integer?
The ID of the LAN you wish to add the servers to.
-
#location ⇒ :"us/las", ...
The datacenter location.
-
#name ⇒ String
The name of the virtual machine.
-
#ram ⇒ Integer?
The amount of memory to allocate to the virtual machine.
-
#remove_boot_volume ⇒ :yes, ...
Remove the bootVolume of the virtual machine you’re destroying.
-
#ssh_keys ⇒ Object?
Public SSH keys allowing access to the virtual machine.
-
#state ⇒ :running, ...
Create or terminate instances.
-
#subscription_password ⇒ Object?
THe ProfitBricks password.
-
#subscription_user ⇒ Object?
The ProfitBricks username.
-
#volume_size ⇒ Integer?
The size in GB of the boot volume.
-
#wait ⇒ :yes, ...
Wait for the instance to be in state ‘running’ before returning.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
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
#assign_public_ip ⇒ :yes, ...
Returns This will assign the machine to the public LAN. If no LAN exists with public Internet access it is created.
66 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 66 attribute :assign_public_ip |
#auto_increment ⇒ :yes, ...
Returns Whether or not to increment a single number in the name for created virtual machines.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 12 attribute :auto_increment |
#bus ⇒ :IDE, ...
Returns The bus type for the volume.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 50 attribute :bus |
#cores ⇒ Integer?
Returns The number of CPU cores to allocate to the virtual machine.
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 34 attribute :cores |
#count ⇒ Integer?
Returns The number of virtual machines to create.
58 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 58 attribute :count |
#cpu_family ⇒ :AMD_OPTERON, ...
Returns The CPU family type to allocate to the virtual machine.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 42 attribute :cpu_family |
#datacenter ⇒ String?
Returns The datacenter to provision this virtual machine.
30 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 30 attribute :datacenter |
#image ⇒ String
Returns The system image ID for creating the virtual machine, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 20 attribute :image |
#image_password ⇒ Object?
Returns Password set for the administrative user.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 24 attribute :image_password |
#instance_ids ⇒ Array<String>, ...
Returns list of instance ids, currently only used when state=‘absent’ to remove instances.
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 54 attribute :instance_ids |
#lan ⇒ Integer?
Returns The ID of the LAN you wish to add the servers to.
70 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 70 attribute :lan |
#location ⇒ :"us/las", ...
Returns The datacenter location. Use only if you want to create the Datacenter or else this value is ignored.
62 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 62 attribute :location |
#name ⇒ String
Returns The name of the virtual machine.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 16 attribute :name |
#ram ⇒ Integer?
Returns The amount of memory to allocate to the virtual machine.
38 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 38 attribute :ram |
#remove_boot_volume ⇒ :yes, ...
Returns remove the bootVolume of the virtual machine you’re destroying.
88 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 88 attribute :remove_boot_volume |
#ssh_keys ⇒ Object?
Returns Public SSH keys allowing access to the virtual machine.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 27 attribute :ssh_keys |
#state ⇒ :running, ...
Returns create or terminate instances.
92 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 92 attribute :state |
#subscription_password ⇒ Object?
Returns THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.
77 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 77 attribute :subscription_password |
#subscription_user ⇒ Object?
Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.
74 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 74 attribute :subscription_user |
#volume_size ⇒ Integer?
Returns The size in GB of the boot volume.
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 46 attribute :volume_size |
#wait ⇒ :yes, ...
Returns wait for the instance to be in state ‘running’ before returning.
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 80 attribute :wait |
#wait_timeout ⇒ Integer?
Returns how long before wait gives up, in seconds.
84 |
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks.rb', line 84 attribute :wait_timeout |