Permalink
Browse files

Merge pull request #26 from russellcardullo/specify_statsd_revision

Use attributes to specify statsd revision.
  • Loading branch information...
hectcastro committed Aug 26, 2013
2 parents dc91094 + 8b85eaa commit 1e65883772695923985bfefb680cfb6b8e48ca1e
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
@@ -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,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
@@ -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

0 comments on commit 1e65883

Please sign in to comment.