That’s right – Device42 now also integrates with SaltStack! If you currently use Device42 and Salt, you can now easily import your Salt node data with our newly published open source Device42-Salt sync script. When this python-based script is run on your Salt Master, it reads the relevant Configuration Item (CI) data and sends it to Device42 via Device42’s RESTful APIs.
After you’ve done your initial import, you can count on Device42’s Continuous Discovery to automatically keep your physical, virtual, cloud servers and containers, network components, software, services, and applications inventory and interdependency information up-to-date.
The Device42 / Salt Integration can gather the following node attributes from Salt:
|
|
|
|
|
|
|
|
|
|
|
|
Running the script is fast and easy, too. Just download, configure, and run from your Salt Master. For detailed information, assumptions, and prerequisites, check out our Salt Integration page.
Configuration and Usage
- Create a working directory foo and copy the contents of the salt_to_device42_sync repository to it
- Copy (or move/rename) the settings file settings.yaml.example to settings.yaml
- Populate the settings.yaml file you created in the last step with your Device42 instance info [host, user, pass]:
- Configure node filtering, if desired. Details regarding configuration options can be found in NodeFilter.md. Filter settings are added following the ‘options:’ section of settings.yaml
- Run the script!
# ========= Device 42 Device42: host: host user: user pass: pass # ========= Options # static options Static: customer: null customer_id: null service_level: null Options: # as_node_name: one of [fqdn, name] as_node_name: fqdn node_filter: []
(consult README.MD & requirements.txt for more details)
$ python saltexplore.py [-c /path/to/settings.yaml]
If you run into any unexpected behavior, bugs, or otherwise have questions, comments, or feature requests, feel free to reach out to [email protected].
Download the Salt integration script for Device42 today!