-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move custom blacklists to separate template. * Move custom config to separate template * Update molecule vagrant config * Allow to override needrestart.conf
- Loading branch information
Showing
6 changed files
with
61 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file overrides needrestart.conf. | ||
# It is managed by Ansible. | ||
|
||
$nrconf{restart} = '{{ needrestart_action }}'; | ||
$nrconf{ucodehints} = {{ needrestart_ucodehints }}; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file overrides the blacklist from needrestart.conf. | ||
# It is managed by Ansible. | ||
|
||
# Blacklist binaries | ||
push ( @{$nrconf{blacklist}}, ( | ||
{% for blacklistbin in needrestart_blacklist_bin %} | ||
qr(^{{ blacklistbin }}$), | ||
{% endfor %} | ||
) | ||
); | ||
|
||
|
||
#Blacklist services | ||
push ( @{$nrconf{blacklist_rc}}, ( | ||
{% for blacklistrc in needrestart_blacklist_rc %} | ||
qr(^{{ blacklistrc }}$), | ||
{% endfor %} | ||
) | ||
); | ||
|