summaryrefslogtreecommitdiff
path: root/DOC_CHANGES.md
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-05-14 16:02:06 -0700
committerClaire McQuin <claire@getchef.com>2014-05-15 14:04:59 -0700
commit1323ffb1de47b31b9e1515c8123c1b8545385a22 (patch)
treee17343bd84cb455380dc945d87bd782c4b9c8cfd /DOC_CHANGES.md
parent4c48ed4a014480cbb34091df3c79600bd3b7378d (diff)
downloadchef-1323ffb1de47b31b9e1515c8123c1b8545385a22.tar.gz
Change attribute whitelist filter syntax to match Ohai
Diffstat (limited to 'DOC_CHANGES.md')
-rw-r--r--DOC_CHANGES.md21
1 files changed, 10 insertions, 11 deletions
diff --git a/DOC_CHANGES.md b/DOC_CHANGES.md
index 2959cd63ea..e288c71972 100644
--- a/DOC_CHANGES.md
+++ b/DOC_CHANGES.md
@@ -52,24 +52,23 @@ If your automatic attribute data looks like
"map - autohome" => {
"size" => "10mb"
}
+ },
+ "network" => {
+ "interfaces" => {
+ "eth0" => {...},
+ "eth1" => {...},
+ }
}
}
````
and your config file looks like
````
-automatic_attribute_whitelist =
- {
- "filesystem" => {
- "/dev/disk0s2" => true
- }
- }
+automatic_attribute_whitelist = ["network/interfaces/eth0"]
````
-then the entire `map - autohome` subtree will not be saved by the node.
+then the entire `filesystem` and `eth1` subtrees will not be saved by the node. To save the `/dev/disk0s2` subtree, you must write `automatic_attribute_whitelist = [ ["filesystem", "/dev/disk0s2"] ]`.
-If your config file looks like `automatic_attribute_whitelist = {}`, then none of your automatic attribute data will be saved by the node.
+If your config file looks like `automatic_attribute_whitelist = []`, then none of your automatic attribute data will be saved by the node.
The default behavior is for the node to save all the attribute data. This can be ensured by setting your whitelist filter to `nil`.
-Note that only the keys in this has will be used. If the values are anything other than a hash, they are ignored. You cannot magically morph these config options into a blacklist by putting `false` as a value in the whitelist.
-
-We recommend only using `automatic_attribute_whitelist` to reduce the size of the system data being stored for nodes, and discourage the use of the other attribute whitelists except by advanced users.
+We recommend only using `automatic_attribute_whitelist` to reduce the size of the system data being stored for nodes, and discourage the use of the other attribute whitelists except by advanced users.