Coder Social home page Coder Social logo

mcollective-haproxyctl's Introduction

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

mcollective-haproxyctl's People

Contributors

scarby avatar danielwhatmuff avatar

Watchers

Duncan Cragg avatar Ralph avatar Ryan Da Costa avatar James Cloos avatar Benjamin Parker avatar Jonathan Pagel avatar Dave Thompson avatar Ben Eppel avatar David Ainslie avatar Stephen Scott avatar Colin Gallagher avatar Jakub Czeczótka avatar Somme avatar Samuel.Hughes avatar Dan Hamilton avatar Andy Wilkinson avatar  avatar Tim Gent avatar  avatar Robin avatar Jack Maloney avatar John Placek avatar Nilesh Gupta avatar  avatar Chelsea Skinner avatar Amar Fiaz avatar Robert Meredith avatar  avatar  avatar  avatar Alex Swann avatar  avatar  avatar

Forkers

uk-gov-mirror

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.