Class: Ansible::Ruby::Modules::Haproxy
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Haproxy
- Defined in:
- lib/ansible/ruby/modules/generated/net_tools/haproxy.rb
Overview
Enable, disable, drain and set weights for HAProxy backend servers using socket commands.
Instance Method Summary collapse
-
#backend ⇒ String?
Name of the HAProxy backend pool.
-
#drain ⇒ Boolean?
Wait until the server has no active connections or until the timeout determined by wait_interval and wait_retries is reached.
-
#fail_on_not_found ⇒ :yes, ...
Fail whenever trying to enable/disable a backend host that does not exist.
-
#host ⇒ String
Name of the backend host to change.
-
#shutdown_sessions ⇒ :yes, ...
When disabling a server, immediately terminate all the sessions attached to the specified server.
-
#socket ⇒ String?
Path to the HAProxy socket file.
-
#state ⇒ :enabled, ...
Desired state of the provided backend host.,Note that C(drain) state was added in version 2.4.
-
#wait ⇒ :yes, ...
Wait until the server reports a status of ‘UP’ when ‘state=enabled`, status of ’MAINT’ when ‘state=disabled` or status of ’DRAIN’ when ‘state=drain`.
-
#wait_interval ⇒ Integer?
Number of seconds to wait between retries.
-
#wait_retries ⇒ Integer?
Number of times to check for status after changing the state.
-
#weight ⇒ Integer?
The value passed in argument.
Methods inherited from Base
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
#backend ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 12 attribute :backend |
#drain ⇒ Boolean?
16 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 16 attribute :drain |
#fail_on_not_found ⇒ :yes, ...
36 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 36 attribute :fail_on_not_found |
#host ⇒ String
20 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 20 attribute :host |
#shutdown_sessions ⇒ :yes, ...
24 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 24 attribute :shutdown_sessions |
#socket ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 28 attribute :socket |
#state ⇒ :enabled, ...
32 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 32 attribute :state |
#wait ⇒ :yes, ...
40 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 40 attribute :wait |
#wait_interval ⇒ Integer?
44 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 44 attribute :wait_interval |
#wait_retries ⇒ Integer?
48 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 48 attribute :wait_retries |
#weight ⇒ Integer?
52 |
# File 'lib/ansible/ruby/modules/generated/net_tools/haproxy.rb', line 52 attribute :weight |