-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make purge idempotent; get rid of reset
The use of `logging_purge_confs` should be be idempotent. This is done by first getting a list of all unowned config files to see if there are any. If there are, then the role will remove all unowned config files not being currently written by the role invocation. That way, if you run the role again with `logging_purge_confs: true` and the same parameters, the role will detect that there should be no changes to the existing files, and return `changed: false`. Get rid of `logging_reset_confs` - use only purge. The way purge works now is that it will look if the rsyslog package needs to be reinstalled, by checking if /etc/rsyslog.conf is modified, and the user has not provided any rsyslog_inputs (because rsyslog_inputs will trigger /etc/rsyslog.conf to be overwritten if __rsyslog_enabled).
- Loading branch information
Showing
8 changed files
with
255 additions
and
110 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
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
Oops, something went wrong.