summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2016-09-22 16:48:48 -0700
committerNoah Kantrowitz <noah@coderanger.net>2016-09-22 16:48:48 -0700
commit6d958602de66c1d11db88274454db6752757d286 (patch)
tree87fd19e777df98fa406b9e7ae4b723847f7d080e
parent41e02809b8279dd262ebad8b079752460fe374ff (diff)
downloadohai-6d958602de66c1d11db88274454db6752757d286.tar.gz
Better doc about ohai config files.
@jaymzh is this correct?
-rw-r--r--DOC_CHANGES.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md
index 6c2b5793..2f8b2ff1 100644
--- a/DOC_CHANGES.md
+++ b/DOC_CHANGES.md
@@ -17,12 +17,18 @@ means that a node with the same source inputs will always result in the same
shard seed, but collisions are possible.
The sources used to compute the seed value can be configured either in your
-Chef config file or your Ohai config file ([ed: does anyone use Ohai config files?]):
+Chef config file:
```ruby
Ohai::Config[:plugins][:shard_seed][:sources] = [:fqdn]
```
+or your Ohai config file if you run Ohai outside of Chef:
+
+```ruby
+ohai.plugin[:shard_seed][:sources] = [:fqdn]
+```
+
The default sources are `[:machinename, :serial, :uuid]` but this value should
be considered experimental for the moment as it may be expanded to support
additional platforms. Configuring a value that works for your infrastructure is