https://github.com/danielwhatmuff/mcollective-haproxyctl
mcollective agent to manage haproxy using haproxyctl
https://github.com/danielwhatmuff/mcollective-haproxyctl
Last synced: about 1 year ago
JSON representation
mcollective agent to manage haproxy using haproxyctl
- Host: GitHub
- URL: https://github.com/danielwhatmuff/mcollective-haproxyctl
- Owner: danielwhatmuff
- License: other
- Created: 2014-10-21T14:54:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T13:32:35.000Z (over 10 years ago)
- Last Synced: 2025-02-02T07:12:58.974Z (over 1 year ago)
- Language: Ruby
- Size: 175 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
mcollective-haproxyctl
======================
simpleRPC agent to manage haproxy using haproxyctl
Assumptions
-----------
The agent assumes install locations of
haproxy at /usr/sbin/haproxy (default for yum install haproxy)
and
haproxyctl at /usr/bin/haproxyctl
Alternate installation locations will require updates within the ../agent/haproxyctl.rb file
Installation
-----------
Copy the haproxyctl.rb and haproxyctl.ddl to the mcollective agent directory.
Restart the mcollective service to load it in.
Usage
-----------
### Viewing backends/health/stat/info/errors
mco rpc haproxyctl show mode=*health|backends|stat|errors|info*
e.g.
mco rpc haproxyctl show mode=backends
will do the equivalent to...
./haproxyctl show backends
### Enabling/disabling servers
mco rpc haproxyctl *enable|enable_all|enable_all_except|disable|disable_all|disable_all_except* SERVER
e.g.
mco rpc haproxyctl enable_all app1
will do the equivalent to...
./haproxyctl enable all app1