- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with puppet-sensu_wrapper
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
This module will set up and install sensu-wrapper, a tool designed to run arbitrary commands and return the result to sensu.
This will:
- Download the golang binary for Linux, and install it for you (by default in
/usr/local/bin
)
- puppet-sensu_wrapper simply downloads the binary for sensu_wrapper using the puppet-archive module and make it available to run
Simply include the module like so:
include ::sensu_wrapper
You may want to use a class include if you wish to override parameters:
class { '::sensu_wrapper' :
version => 'v0.2',
}
include ::sensu_wrapper
If you need to pull the binary from a local HTTP repository rather than github, you'll need to specify a URL like so:
class { '::sensu_wrapper':
download_url => 'http://my-http-server/sensu_wrapper/v0.2/sensu_wrapper.tar.gz,
version => 'v0.2',
}
** Please note, you should still set the version to ensure the symlink/directories and upgrades work **
sensu_wrapper
: Installs sensu_wrapper in your environment.
- [
sensu_wrapper::install
]: Installs the required sensu_wrapper binary and symlinks to a path of your choice - [
sensu_wrapper::configure
]: Configures sensu_wrapper's required config dir
The version of the sensu-wrapper to deploy, see https://github.com/jaxxstorm/sensu-wrapper/releases
Full path to store the tar gzip archive of the sensu wrapper (default: /tmp/sensu-wrapper.tar.gz)
Where to extract the downloaded sensu_wrapper tar gzip archive (default: /opt/sensu-wrapper
)
The bin to symlink the executable (default: /usr/local/bin/sensu-wrapper
)
Config directory for sensu_wrapper (default: /etc/sensu-wrapper.d
)
Base URL from github release for grabbing sensu-wrapper binary (default: https://github.com/jaxxstorm/sensu-wrapper/releases/download/'
)
Override URL for downloading sensu-wrapper (default: undef)
- Only works on Linux, like the sensu-wrapper binary