Class: Ansible::Ruby::Modules::Digital_ocean
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Digital_ocean
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb
Instance Method Summary collapse
-
#api_token ⇒ String?
DigitalOcean api token.
-
#backups_enabled ⇒ :yes, ...
Optional, Boolean, enables backups for your droplet.
-
#command ⇒ :droplet, ...
Which target you want to operate on.
-
#id ⇒ Integer?
Numeric, the droplet id you want to operate on.
-
#image_id ⇒ String?
This is the slug of the image you would like the droplet created with.
-
#name ⇒ String?
String, this is the name of the droplet - must be formatted by hostname rules, or the name of a SSH key.
-
#private_networking ⇒ :yes, ...
Bool, add an additional, private network interface to droplet for inter-droplet communication.
-
#region_id ⇒ String?
This is the slug of the region you would like your server to be created in.
-
#size_id ⇒ String?
This is the slug of the size you would like the droplet created with.
-
#ssh_key_ids ⇒ Integer?
Optional, array of of SSH key (numeric) ID that you would like to be added to the server.
-
#ssh_pub_key ⇒ String?
The public SSH key you want to add to your account.
-
#state ⇒ :present, ...
Indicate desired state of the target.
-
#unique_name ⇒ :yes, ...
Bool, require unique hostnames.
-
#user_data ⇒ Object?
Opaque blob of data which is made available to the droplet.
-
#virtio ⇒ :yes, ...
Bool, turn on virtio driver in droplet for improved network and storage I/O.
-
#wait ⇒ :yes, ...
Wait for the droplet 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, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#api_token ⇒ String?
Returns DigitalOcean api token.
18 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 18 attribute :api_token |
#backups_enabled ⇒ :yes, ...
Returns Optional, Boolean, enables backups for your droplet.
58 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 58 attribute :backups_enabled |
#command ⇒ :droplet, ...
Returns Which target you want to operate on.
10 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 10 attribute :command |
#id ⇒ Integer?
Returns Numeric, the droplet id you want to operate on.
22 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 22 attribute :id |
#image_id ⇒ String?
Returns This is the slug of the image you would like the droplet created with.
38 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 38 attribute :image_id |
#name ⇒ String?
Returns String, this is the name of the droplet - must be formatted by hostname rules, or the name of a SSH key.
26 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 26 attribute :name |
#private_networking ⇒ :yes, ...
Returns Bool, add an additional, private network interface to droplet for inter-droplet communication.
54 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 54 attribute :private_networking |
#region_id ⇒ String?
Returns This is the slug of the region you would like your server to be created in.
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 42 attribute :region_id |
#size_id ⇒ String?
Returns This is the slug of the size you would like the droplet created with.
34 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 34 attribute :size_id |
#ssh_key_ids ⇒ Integer?
Returns Optional, array of of SSH key (numeric) ID that you would like to be added to the server.
46 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 46 attribute :ssh_key_ids |
#ssh_pub_key ⇒ String?
Returns The public SSH key you want to add to your account.
73 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 73 attribute :ssh_pub_key |
#state ⇒ :present, ...
Returns Indicate desired state of the target.
14 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 14 attribute :state |
#unique_name ⇒ :yes, ...
Returns Bool, require unique hostnames. By default, DigitalOcean allows multiple hosts with the same name. Setting this to “yes” allows only one host per name. Useful for idempotence.
30 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 30 attribute :unique_name |
#user_data ⇒ Object?
Returns opaque blob of data which is made available to the droplet.
62 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 62 attribute :user_data |
#virtio ⇒ :yes, ...
Returns Bool, turn on virtio driver in droplet for improved network and storage I/O.
50 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 50 attribute :virtio |
#wait ⇒ :yes, ...
Returns Wait for the droplet to be in state ‘running’ before returning. If wait is “no” an ip_address may not be returned.
65 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 65 attribute :wait |
#wait_timeout ⇒ Integer?
Returns How long before wait gives up, in seconds.
69 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/digital_ocean/digital_ocean.rb', line 69 attribute :wait_timeout |