Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
attributes A cookbook for whitelisting node attributes
libraries
recipes Wrap node.save
README.rdoc Updating the docs
metadata.rb

README.rdoc

DESCRIPTION:

Allows you to provide a whitelist of node attributes to save on the server. All of the attributes are still available throughout the chef run, but only those specifically listed will be saved to the server.

ATTRIBUTES:

node[:whitelist] provides a map of node attributes to store. The defaults are provided by this cookbook, and the map is:

node.default[:whitelist] = {
  "domain" => true,
  "fqdn" => true,
  "hostname" => true,
  "ipaddress" => true,
  "macaddress" => true,
  "platform" => true,
  "platform_version" => true,
  "kernel" => {
    "machine" => true,
    "name" => true,
    "os" => true,
    "release" => true,
    "version" => true
  }
}

The results would be that the node object as seen on the server will only have the attributes specified above.

This cookbook honors the fact that attributes are set at different precedence levels.

USAGE:

Upload the cookbook, and make sure that it is included as a dependency in another cookbooks metadata, or that the recipe (which does nothing) is included in the role.

Whenever node.save is called, the whitelist will be applied.

Something went wrong with that request. Please try again.