Class: Ansible::Ruby::Modules::Rax
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Rax
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb
Instance Method Summary collapse
-
#auto_increment ⇒ Boolean?
Whether or not to increment a single number with the name of the created servers.
-
#boot_from_volume ⇒ :yes, ...
Whether or not to boot the instance from a Cloud Block Storage volume.
-
#boot_volume ⇒ Object?
Cloud Block Storage ID or Name to use as the boot volume of the instance.
-
#boot_volume_size ⇒ Integer?
Size of the volume to create in Gigabytes.
-
#boot_volume_terminate ⇒ Boolean?
Whether the I(boot_volume) or newly created volume from I(image) will be terminated when the server is terminated.
-
#config_drive ⇒ Boolean?
Attach read-only configuration drive to server as label config-2.
-
#count ⇒ Integer?
Number of instances to launch.
-
#count_offset ⇒ Integer?
Number count to start at.
-
#disk_config ⇒ :auto, ...
Disk partitioning strategy.
-
#exact_count ⇒ Boolean?
Explicitly ensure an exact count of instances, used with state=active/present.
-
#extra_client_args ⇒ Object?
A hash of key/value pairs to be used when creating the cloudservers client.
-
#extra_create_args ⇒ Object?
A hash of key/value pairs to be used when creating a new server.
-
#files ⇒ Object?
Files to insert into the instance.
-
#flavor ⇒ Object?
Flavor to use for the instance.
-
#group ⇒ Object?
Host group to assign to server, is also used for idempotent operations to ensure a specific number of instances.
-
#image ⇒ Object?
Image to use for the instance.
-
#instance_ids ⇒ Object?
List of instance ids, currently only used when state=‘absent’ to remove instances.
-
#key_name ⇒ Object?
Key pair to use on the instance.
-
#meta ⇒ Object?
A hash of metadata to associate with the instance.
-
#name ⇒ String?
Name to give the instance.
-
#networks ⇒ String?
The network to attach to the instances.
-
#state ⇒ :present, ...
Indicate desired state of the resource.
-
#user_data ⇒ Object?
Data to be uploaded to the servers config drive.
-
#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, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#auto_increment ⇒ Boolean?
Returns Whether or not to increment a single number with the name of the created servers. Only applicable when used with the I(group) attribute or meta key.
10 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 10 attribute :auto_increment |
#boot_from_volume ⇒ :yes, ...
Returns Whether or not to boot the instance from a Cloud Block Storage volume. If C(yes) and I(image) is specified a new volume will be created at boot time. I(boot_volume_size) is required with I(image) to create a new volume at boot time.
14 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 14 attribute :boot_from_volume |
#boot_volume ⇒ Object?
Returns Cloud Block Storage ID or Name to use as the boot volume of the instance.
18 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 18 attribute :boot_volume |
#boot_volume_size ⇒ Integer?
Returns Size of the volume to create in Gigabytes. This is only required with I(image) and I(boot_from_volume).
21 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 21 attribute :boot_volume_size |
#boot_volume_terminate ⇒ Boolean?
Returns Whether the I(boot_volume) or newly created volume from I(image) will be terminated when the server is terminated.
25 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 25 attribute :boot_volume_terminate |
#config_drive ⇒ Boolean?
Returns Attach read-only configuration drive to server as label config-2.
29 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 29 attribute :config_drive |
#count ⇒ Integer?
Returns number of instances to launch.
33 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 33 attribute :count |
#count_offset ⇒ Integer?
Returns number count to start at.
37 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 37 attribute :count_offset |
#disk_config ⇒ :auto, ...
Returns Disk partitioning strategy.
41 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 41 attribute :disk_config |
#exact_count ⇒ Boolean?
Returns Explicitly ensure an exact count of instances, used with state=active/present. If specified as C(yes) and I(count) is less than the servers matched, servers will be deleted to match the count. If the number of matched servers is fewer than specified in I(count) additional servers will be added.
45 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 45 attribute :exact_count |
#extra_client_args ⇒ Object?
Returns A hash of key/value pairs to be used when creating the cloudservers client. This is considered an advanced option, use it wisely and with caution.
49 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 49 attribute :extra_client_args |
#extra_create_args ⇒ Object?
Returns A hash of key/value pairs to be used when creating a new server. This is considered an advanced option, use it wisely and with caution.
52 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 52 attribute :extra_create_args |
#files ⇒ Object?
Returns Files to insert into the instance. remotefilename:localcontent.
55 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 55 attribute :files |
#flavor ⇒ Object?
Returns flavor to use for the instance.
58 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 58 attribute :flavor |
#group ⇒ Object?
Returns host group to assign to server, is also used for idempotent operations to ensure a specific number of instances.
61 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 61 attribute :group |
#image ⇒ Object?
Returns image to use for the instance. Can be an C(id), C(human_id) or C(name). With I(boot_from_volume), a Cloud Block Storage volume will be created with this image.
64 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 64 attribute :image |
#instance_ids ⇒ Object?
Returns list of instance ids, currently only used when state=‘absent’ to remove instances.
67 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 67 attribute :instance_ids |
#key_name ⇒ Object?
Returns key pair to use on the instance.
70 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 70 attribute :key_name |
#meta ⇒ Object?
Returns A hash of metadata to associate with the instance.
73 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 73 attribute :meta |
#name ⇒ String?
Returns Name to give the instance.
76 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 76 attribute :name |
#networks ⇒ String?
Returns The network to attach to the instances. If specified, you must include ALL networks including the public and private interfaces. Can be C(id) or C(label).
80 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 80 attribute :networks |
#state ⇒ :present, ...
Returns Indicate desired state of the resource.
84 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 84 attribute :state |
#user_data ⇒ Object?
Returns Data to be uploaded to the servers config drive. This option implies I(config_drive). Can be a file path or a string.
88 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 88 attribute :user_data |
#wait ⇒ :yes, ...
Returns wait for the instance to be in state ‘running’ before returning.
91 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 91 attribute :wait |
#wait_timeout ⇒ Integer?
Returns how long before wait gives up, in seconds.
95 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 95 attribute :wait_timeout |