Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
puppet-modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nbits
Puppet
puppet-modules
Commits
ddd6e429
Commit
ddd6e429
authored
Jun 10, 2023
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
Install needrestart and run every night
parent
1ed065b1
No related branches found
No related tags found
1 merge request
!34
Install needrestart and run it every night
Pipeline
#148149
failed
Jun 10, 2023
Stage: check-code
Stage: tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
profile/manifests/base/minimal.pp
+1
-0
1 addition, 0 deletions
profile/manifests/base/minimal.pp
profile/manifests/needrestart.pp
+11
-0
11 additions, 0 deletions
profile/manifests/needrestart.pp
with
12 additions
and
0 deletions
profile/manifests/base/minimal.pp
+
1
−
0
View file @
ddd6e429
...
...
@@ -14,6 +14,7 @@ class profile::base::minimal (
include
profile::apt
include
profile::systemd
include
profile::packages
include
profile::needrestart
if
$manage_firewall
{
include
profile::firewall
...
...
This diff is collapsed.
Click to expand it.
profile/manifests/needrestart.pp
0 → 100644
+
11
−
0
View file @
ddd6e429
# Manage needrestart
class
profile::needrestart
{
ensure_packages
([
'needrestart'
])
cron
{
'needrestart restart auto'
:
command
=>
'/usr/sbin/needrestart -r a'
,
minute
=>
0
,
hour
=>
3
,
user
=>
'root'
,
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment