Class: Ansible::Ruby::Modules::Os_server_group

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

Overview

Add or remove server groups from OpenStack.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



24
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_group.rb', line 24

attribute :availability_zone

#nameString

Returns Server group name.

Returns:

  • (String)

    Server group name.



16
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_group.rb', line 16

attribute :name

#policiesArray<String>, ...

Returns A list of one or more policy names to associate with the server group. The list must contain at least one policy name. The current valid policy names are anti-affinity, affinity, soft-anti-affinity and soft-affinity.

Returns:

  • (Array<String>, String, nil)

    A list of one or more policy names to associate with the server group. The list must contain at least one policy name. The current valid policy names are anti-affinity, affinity, soft-anti-affinity and soft-affinity.



20
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_group.rb', line 20

attribute :policies

#state:present, ...

Returns Indicate desired state of the resource. When I(state) is ‘present’, then I(policies) is required.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource. When I(state) is ‘present’, then I(policies) is required.



12
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_group.rb', line 12

attribute :state