Skip to content

Instantly share code, notes, and snippets.

@colinrymer
Created April 30, 2013 13:23
Show Gist options
  • Save colinrymer/5488660 to your computer and use it in GitHub Desktop.
Save colinrymer/5488660 to your computer and use it in GitHub Desktop.

Noah Agent Options

Options for making changes are:

  • chef-client run
  • chef single recipe run
  • custom shell script

A Noah watcher/agent LWRP will be provided that allows chef recipes to register the patterns to watch and the command to run when triggered, e.g.

noah_watch 'haproxy nodes' do
  pattern 'some pattern'
  command 'some command'
end

This LWRP will be responsible for generating its own callback route for each watch created through it. The agent will need to be configured with these callbacks, which should possibly support dynamic creation of callback routes.

Option 1 - Chef Client

Quickest to implement, likely starting place for the LWRP.

Option 2 - Single Chef Recipe

Allows possible reuse of chef recipe, possibly more overhead with setup compared to other two options.

Option 3 - Custom Shell Script

Most flexibility in actions taken; possible issue with chef and custom script both managing contents of a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment