Commit 97080c07 authored by remy's avatar remy
Browse files

updating readme: removing useless stuff

parent 5e50fc27
......@@ -8,8 +8,6 @@ salt '*' state.sls check_services
Actually, I am using it with json output. Then I read the results with a specific php file every morning (cron).
`services.new.sls` was written to avoid old legacy style for `module.run` ( https://docs.saltproject.io/en/3000/ref/states/all/salt.states.module.html ) calls, and the custom module (`_modules/customservice.py`) [^1], but the new style, by including all services in only one `module.run` does not allow me to check each service (not a `dict` returned).
In uses `set_grains` formula to set two main grains: `roles` and `pool`.
A cleaner way to do this would be by including all the logic into one pillar file, or with `file.managed` to the json written file + a dedicated salt mine.
[^1] Indeed, I had some synchronziation issues with custom modules on salt minions version > 2019. I needed to run `salt '*' saltutil.sync_all` or at least `salt '*' saltutil.sync_modules`.
`roles` are used to check some additional services (like `proxmox`).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment