Installs/Configures ScoutApp.com Agent
Supports both standard and RVM installations using Fletcher Nichol's RVM cookbook.
node['scout']['user']
- The user Scout is executed asnode['scout']['group']
- The group of the Scout usernode['scout']['groups']
- Groups to append the Scout user to, if they existnode['scout']['home']
- The home directory of the Scout user, Scout uses this for storage by default
node['scout']['version']
- The Scout rubygem versionnode['scout']['rvm_ruby_string']
- The RVM-based Ruby version (and optionally gemset) for Scoutnode['scout']['rvm_wrapper_prefix']
- The prefix to use for the RVM wrapper scriptnode['scout']['gem_packages']
- List gems (and optionally versions) that your Scout plugins need
The gem_packages attribute is a Hash where the keys are rubygem names and the values are either the gem version to install or blank.
node['scout']['key']
- The server's key provided by Scoutnode['scout']['log_file']
- Full path used to redirect the output of the cron jobnode['scout']['name']
- The server name to show in Scoutnode['scout']['name_prefix']
- A common server name prefix to show in Scoutnode['scout']['name_suffix']
- A common server name suffix to show in Scoutnode['scout']['options']
- Additional options to pass as arguments to the Scout executable
If you run Scout in multiple environments, then you can optionally set the key attribute to a Hash of key value pairs where the key is the chef environment name and the value is the key for that environment.
If %{name}
appears in your name attributes, this is will be replaced
with the node's name. If %{chef_environment}
appears in your name
attributes, then it will be replaced with the node's Chef environment.
The options attribute is a Hash where the keys are the long-form command line argument name and the value is the argument value.
node['scout']['plugin_public_key']
- Your Plugin Public Key used with private pluginsnode['scout']['config_dir']
- The config directory for Scout, used to setup the Plugin Public Key
At minimum, the node['scout']['key']
attribute must be defined. You
will generally want to use Scout's cloud images feature and configure
a key and name per role.
name "web_server"
run_list "recipe[rvm::system]", "recipe[scout]"
default_attributes({
"scout" => {
"key" => "YOUR-WEB-SERVER-SCOUT-KEY",
"name" => "Web Server (%{name})",
"options" => {
"level" => "debug",
},
"rvm_ruby_string" => "ruby-1.9.3-p125@scout",
"gem_packages" => {
"request-log-analyzer" => nil,
},
},
})