forked from saltstack/salt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mount: add not_change parameter to set_fstab and similars
The current 'set_' family search the entry based on a 'match_on' parameter. If the line is found check that there is no difference between the expectations and the present line. If there are changes this line gets replaced. This default behaviour is the correct one in cases where the Salt code owns all the changes made on entries. But in some scenarios we do not want to overwrite the line if is already present, even if there are diferences in other parameters, like the option field. This patch add a new parameter, 'not_change', that if is True will not overwrite the present line in any case. Also update the `mount` state to transfer this new parameter.
- Loading branch information
Showing
4 changed files
with
109 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters