Class: Ansible::Ruby::Modules::Haproxy

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/network/haproxy.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

#backendString?

Returns Name of the HAProxy backend pool.

Returns:

  • (String, nil)

    Name of the HAProxy backend pool.



10
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 10

attribute :backend

#hostString

Returns Name of the backend host to change.

Returns:

  • (String)

    Name of the backend host to change.



14
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 14

attribute :host

#shutdown_sessionsBoolean?

Returns When disabling a server, immediately terminate all the sessions attached to the specified server. This can be used to terminate long-running sessions after a server is put into maintenance mode.

Returns:

  • (Boolean, nil)

    When disabling a server, immediately terminate all the sessions attached to the specified server. This can be used to terminate long-running sessions after a server is put into maintenance mode.



18
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 18

attribute :shutdown_sessions

#socketString?

Returns Path to the HAProxy socket file.

Returns:

  • (String, nil)

    Path to the HAProxy socket file.



22
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 22

attribute :socket

#state:enabled, :disabled

Returns Desired state of the provided backend host.

Returns:

  • (:enabled, :disabled)

    Desired state of the provided backend host.



26
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 26

attribute :state

#waitBoolean?

Returns Wait until the server reports a status of ‘UP’ when ‘state=enabled`, or status of ’MAINT’ when ‘state=disabled`.

Returns:

  • (Boolean, nil)

    Wait until the server reports a status of ‘UP’ when ‘state=enabled`, or status of ’MAINT’ when ‘state=disabled`.



30
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 30

attribute :wait

#wait_intervalInteger?

Returns Number of seconds to wait between retries.

Returns:

  • (Integer, nil)

    Number of seconds to wait between retries.



34
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 34

attribute :wait_interval

#wait_retriesInteger?

Returns Number of times to check for status after changing the state.

Returns:

  • (Integer, nil)

    Number of times to check for status after changing the state.



38
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 38

attribute :wait_retries

#weightString?

Returns The value passed in argument. If the value ends with the ‘%` sign, then the new weight will be relative to the initially configured weight. Relative weights are only permitted between 0 and 100% and absolute weights are permitted between 0 and 256.

Returns:

  • (String, nil)

    The value passed in argument. If the value ends with the ‘%` sign, then the new weight will be relative to the initially configured weight. Relative weights are only permitted between 0 and 100% and absolute weights are permitted between 0 and 256.



42
# File 'lib/ansible/ruby/modules/generated/extras/network/haproxy.rb', line 42

attribute :weight