FEATURE REQUEST: ini_manage should able to synchronize ini file from sections dict #29287
Labels
Execution-Module
Feature
new functionality including changes to functionality and code refactors, etc.
help-wanted
Community help is needed to resolve this
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
Milestone
Right now, If a certain option is set in the ini file, but it doesn't exist in the "sections dict" in salt.states.ini_manage.options_present, that option will remain unchanged:
From the docs:
It would be great if there was a separate state function (or a switch in salt.states.ini_manage.options_present) that ensures that only options in the "sections dict" are kept in the ini file. If an option doesn't exist in the "sections dict", it should be deleted from the ini file. Basically, synchronize the ini file with the "sections dict".
I'm not asking for the current behaviour to be changed, but both behaviours should be supported.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ini_manage.html
Thanks!!!
g.
The text was updated successfully, but these errors were encountered: