https://github.com/device42/salt_to_device42_sync
Sync node data from Salt server to Device42
https://github.com/device42/salt_to_device42_sync
devops inventory salt
Last synced: 15 days ago
JSON representation
Sync node data from Salt server to Device42
- Host: GitHub
- URL: https://github.com/device42/salt_to_device42_sync
- Owner: device42
- License: bsd-3-clause
- Created: 2017-01-30T15:47:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T16:17:06.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T18:14:13.991Z (almost 2 years ago)
- Topics: devops, inventory, salt
- Language: Python
- Size: 28.3 KB
- Stars: 4
- Watchers: 10
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# saltexplore
Script to sync Salt nodes information to Device42 (http://device42.com)
This script was tested with Salt Master ( 2016.11.1 Carbon )
# Requirements
Take the file `settings.yaml.example` and rename it to `settings.yaml`. Then change the settings to correct ones.
# Salt Configure
For proper connection minions certificate should be signed on salt master.
Script should be run on salt master server.
See [NodeFilter.md](./NodeFilter.md) for node filtering options.
# Run
```
python saltexplore.py [-c /path/to/settings.yaml]
```
# Command List
```
-h, --help show help message and exit
-d, --debug Enable debug output
-q, --quiet Quiet mode - outputs only errors
-c CONFIG, --config CONFIG
Config file
-f NODEFILE, --nodefile NODEFILE
Get node info from JSON file instead of Salt server
-S SAVENODES, --savenodes SAVENODES
Save nodes info from Salt server to json file
-n ONLYNODE, --onlynode ONLYNODE
Process only selected nodes (fqdn or hostname)
```
# Bugs / Feature Requests
Please attach node info from salt while sending bugs/feature requests. It can help to understand your specifics.