Read tops data from a mongodb collection
This module will load tops data from a mongo collection. It uses the node's id for lookups.
The module shares the same base mongo connection variables as salt.returners.mongo_return
. These variables go in your master config file.
mongo.db
- The mongo database to connect to. Defaults to'salt'
.mongo.host
- The mongo host to connect to. Supports replica sets by specifying all hosts in the set, comma-delimited. Defaults to'salt'
.mongo.port
- The port that the mongo database is running on. Defaults to27017
.mongo.user
- The username for connecting to mongo. Only required if you are using mongo authentication. Defaults to''
.mongo.password
- The password for connecting to mongo. Only required if you are using mongo authentication. Defaults to''
.
master_tops: mongo: collection: tops id_field: _id re_replace: "" re_pattern: \.example\.com states_field: states environment_field: environment
Connect to a mongo database and read per-node tops data.
Parameters: |
|
---|
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/tops/all/salt.tops.mongo.html