Skip to content

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

License

Notifications You must be signed in to change notification settings

device42/chef_to_device42_sync_py

Repository files navigation

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