Class: Ansible::Ruby::Modules::Gluster_peer

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/storage/glusterfs/gluster_peer.rb

Overview

Create or diminish a GlusterFS trusted storage pool. A set of nodes can be added into an existing trusted storage pool or a new storage pool can be formed. Or, nodes can be removed from an existing trusted storage pool.

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

#forceSymbol?

Returns Applicable only while removing the nodes from the pool. gluster will refuse to detach a node from the pool if any one of the node is down, in such cases force can be used.

Returns:

  • (Symbol, nil)

    Applicable only while removing the nodes from the pool. gluster will refuse to detach a node from the pool if any one of the node is down, in such cases force can be used.



20
# File 'lib/ansible/ruby/modules/generated/storage/glusterfs/gluster_peer.rb', line 20

attribute :force

#nodesArray<String>, String

Returns List of nodes that have to be probed into the pool.

Returns:

  • (Array<String>, String)

    List of nodes that have to be probed into the pool.



16
# File 'lib/ansible/ruby/modules/generated/storage/glusterfs/gluster_peer.rb', line 16

attribute :nodes

#state:present, :absent

Returns Determines whether the nodes should be attached to the pool or removed from the pool. If the state is present, nodes will be attached to the pool. If state is absent, nodes will be detached from the pool.

Returns:

  • (:present, :absent)

    Determines whether the nodes should be attached to the pool or removed from the pool. If the state is present, nodes will be attached to the pool. If state is absent, nodes will be detached from the pool.



12
# File 'lib/ansible/ruby/modules/generated/storage/glusterfs/gluster_peer.rb', line 12

attribute :state