Class: Ansible::Ruby::Modules::Rax

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb

Overview

creates / deletes a Rackspace Public Cloud instance and optionally waits for it to be ‘running’.

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

#auto_incrementBoolean?

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.

Returns:

  • (Boolean, nil)

    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.



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 11

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.

Returns:

  • (:yes, :no, nil)

    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.



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 15

attribute :boot_from_volume

#boot_volumeObject?

Returns Cloud Block Storage ID or Name to use as the boot volume of the instance.

Returns:

  • (Object, nil)

    Cloud Block Storage ID or Name to use as the boot volume of the instance



19
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 19

attribute :boot_volume

#boot_volume_sizeInteger?

Returns Size of the volume to create in Gigabytes. This is only required with I(image) and I(boot_from_volume).

Returns:

  • (Integer, nil)

    Size of the volume to create in Gigabytes. This is only required with I(image) and I(boot_from_volume).



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 22

attribute :boot_volume_size

#boot_volume_terminateBoolean?

Returns Whether the I(boot_volume) or newly created volume from I(image) will be terminated when the server is terminated.

Returns:

  • (Boolean, nil)

    Whether the I(boot_volume) or newly created volume from I(image) will be terminated when the server is terminated



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 26

attribute :boot_volume_terminate

#config_driveBoolean?

Returns Attach read-only configuration drive to server as label config-2.

Returns:

  • (Boolean, nil)

    Attach read-only configuration drive to server as label config-2



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 30

attribute :config_drive

#countInteger?

Returns number of instances to launch.

Returns:

  • (Integer, nil)

    number of instances to launch



34
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 34

attribute :count

#count_offsetInteger?

Returns number count to start at.

Returns:

  • (Integer, nil)

    number count to start at



38
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 38

attribute :count_offset

#disk_config:auto, ...

Returns Disk partitioning strategy.

Returns:

  • (:auto, :manual, nil)

    Disk partitioning strategy



42
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 42

attribute :disk_config

#exact_countBoolean?

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.

Returns:

  • (Boolean, nil)

    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.



46
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 46

attribute :exact_count

#extra_client_argsObject?

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.

Returns:

  • (Object, nil)

    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.



50
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 50

attribute :extra_client_args

#extra_create_argsObject?

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.

Returns:

  • (Object, nil)

    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.



53
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 53

attribute :extra_create_args

#filesObject?

Returns Files to insert into the instance. remotefilename:localcontent.

Returns:

  • (Object, nil)

    Files to insert into the instance. remotefilename:localcontent



56
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 56

attribute :files

#flavorObject?

Returns flavor to use for the instance.

Returns:

  • (Object, nil)

    flavor to use for the instance



59
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 59

attribute :flavor

#groupObject?

Returns host group to assign to server, is also used for idempotent operations to ensure a specific number of instances.

Returns:

  • (Object, nil)

    host group to assign to server, is also used for idempotent operations to ensure a specific number of instances



62
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 62

attribute :group

#imageObject?

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.

Returns:

  • (Object, nil)

    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



65
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 65

attribute :image

#instance_idsObject?

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

Returns:

  • (Object, nil)

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



68
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 68

attribute :instance_ids

#key_nameObject?

Returns key pair to use on the instance.

Returns:

  • (Object, nil)

    key pair to use on the instance



71
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 71

attribute :key_name

#metaObject?

Returns A hash of metadata to associate with the instance.

Returns:

  • (Object, nil)

    A hash of metadata to associate with the instance



74
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 74

attribute :meta

#nameString?

Returns Name to give the instance.

Returns:

  • (String, nil)

    Name to give the instance



77
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 77

attribute :name

#networksString?

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

Returns:

  • (String, nil)

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



81
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 81

attribute :networks

#state:present, ...

Returns Indicate desired state of the resource.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource



85
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 85

attribute :state

#user_dataObject?

Returns Data to be uploaded to the servers config drive. This option implies I(config_drive). Can be a file path or a string.

Returns:

  • (Object, nil)

    Data to be uploaded to the servers config drive. This option implies I(config_drive). Can be a file path or a string



89
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 89

attribute :user_data

#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



92
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 92

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



96
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax.rb', line 96

attribute :wait_timeout