Skip to content
Browse files

Use attributes to specify statsd revision

So that users may pin to specific revisions of statsd.
Defaults to master.
  • Loading branch information...
1 parent dc91094 commit f05c5c519f1fccdbae4e3465190694a34347ea4d @russellcardullo russellcardullo committed
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"]["revision"]` - 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"]["revision"] = "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"]["revision"]
action :sync
notifies :restart, "runit_service[statsd]"
end

0 comments on commit f05c5c5

Please sign in to comment.
Something went wrong with that request. Please try again.