Skip to content

device42/chef_to_device42_sync_py

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

chefexplore

Script to sync Chef nodes information to Device42 (http://device42.com)

Requirements

You will need to install pychef Python's packege: https://github.com/coderanger/pychef.

Configure

Take the file settings.yaml.example and rename it to settings.yaml. Then change the settings to correct ones.

Note that for Chef Server >= 12 you should set up 'organization' parameter.

You should obtain client name and its key file to be able to connect to Chef server.

See NodeFilter.md for node filtering options.

Custom Fields Mapping

You may send any variable from nodes. Just define mapping section in settings.yaml ( we have commented example ).

If variable are tuple, list or dict we send length of the particular object.

If you want to see all possible node values, please use show_node parameter in settings.yaml options section.

Run

    python chefexplore.py [-c /path/to/settings.yaml]

Bugs / Feature Requests

Please attach node info from chef/ohai while sending bugs/feature requests. It can help to understand your specifics.

About

This script takes the node(s) data from Chef server and sends to Device42 instance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages