Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


idempotent-export-node (19) Versions 1.2.1

Exports node attributes to a json file

cookbook 'idempotent-export-node', '= 1.2.1', :supermarket
cookbook 'idempotent-export-node', '= 1.2.1'
knife supermarket install idempotent-export-node
knife supermarket download idempotent-export-node
Quality 67%


Fork of export-node made to be compatible with force_idempotency kitchen provisionner's configuration.

idempotent-export-node exports node attributes to a json file so that it can be retrieved from a kitchen test.


Add the export-node cookbook to the end of the runlist in your kitchen suites:

  - name: my-suite
      - recipe[cookbook-under-test]
      - recipe[idempotent-export-node]

Now your tests can access any node attribute by parsing the file's json to a hash:

if == 'debian'

    # Get current local path
    current_path = File.dirname(__FILE__)

    # Get chef node informations
    node = json('/tmp/kitchen/chef_node.json')

    # Check templated sources.list
    describe file('/etc/apt/sources.list') do

        # Create a local variable to store codename
        let(:codename) { node['default']['base']['codename'] }

        it { should be_file }
        its('owner') { should eq 'root' }
        its('content') { should eq"#{current_path}/files/#{codename}.list") }

Windows instances will store the node data in %TEMP%\kitchen\chef_node.json and other platforms will store the node data in /tmp/kitchen/chef_node.json.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric

1.2.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

1.2.1 passed this metric

Foodcritic Metric

1.2.1 passed this metric

No Binaries Metric

1.2.1 passed this metric

Testing File Metric

1.2.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

1.2.1 passed this metric