Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from russellcardullo/specify_statsd_revision

Use attributes to specify statsd revision.
  • Loading branch information...
commit 1e65883772695923985bfefb680cfb6b8e48ca1e 2 parents dc91094 + 8b85eaa
@hectcastro authored
Showing with 3 additions and 0 deletions.
  1. +1 −0  README.md
  2. +1 −0  attributes/default.rb
  3. +1 −0  recipes/default.rb
View
1  README.md
@@ -24,6 +24,7 @@ Installs and configures StatsD.
* `node["statsd"]["dir"]` - Directory to install into.
* `node["statsd"]["conf_dir"]` - Directory for StatsD configuration.
* `node["statsd"]["repository"]` - Reference to a StatsD repository.
+* `node["statsd"]["reference"]` - Revision of repository to checkout.
* `node["statsd"]["log_file"]` - Path to the StatsD log file.
* `node["statsd"]["flush_interval"]` - Flush interval in milliseconds.
* `node["statsd"]["percent_threshold"]` - Nth percentile value(s). Single value or array.
View
1  attributes/default.rb
@@ -1,6 +1,7 @@
default["statsd"]["dir"] = "/usr/share/statsd"
default["statsd"]["conf_dir"] = "/etc/statsd"
default["statsd"]["repository"] = "http://github.com/etsy/statsd.git"
+default["statsd"]["reference"] = "master"
default["statsd"]["flush_interval"] = 10000
default["statsd"]["percent_threshold"] = 90
default["statsd"]["address"] = "0.0.0.0"
View
1  recipes/default.rb
@@ -4,6 +4,7 @@
git node["statsd"]["dir"] do
repository node["statsd"]["repository"]
+ reference node["statsd"]["reference"]
action :sync
notifies :restart, "runit_service[statsd]"
end
Please sign in to comment.
Something went wrong with that request. Please try again.