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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nbits
Puppet
puppet-modules
Commits
80a2e93d
Commit
80a2e93d
authored
4 years ago
by
drebs
Browse files
Options
Downloads
Patches
Plain Diff
Create unattended-upgrades profile
parent
9d6fde15
Branches
unattended-upgrades-profile
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#54840
passed
4 years ago
Stage: check-code
Stage: tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
profile/manifests/apt.pp
+2
-17
2 additions, 17 deletions
profile/manifests/apt.pp
profile/manifests/apt/unattended_upgrades.pp
+23
-0
23 additions, 0 deletions
profile/manifests/apt/unattended_upgrades.pp
with
25 additions
and
17 deletions
profile/manifests/apt.pp
+
2
−
17
View file @
80a2e93d
# APT profile
class
profile::apt
(
Boolean
$auto_reboot
=
true
,
Optional
[
Boolean
]
$legacy_origin
=
$unattended_upgrades::params::legacy_origin
,
Optional
[
Array
[
String
[
1
]]]
$origins
=
$unattended_upgrades::params::origins
,
)
{
include
apt
...
...
@@ -13,21 +11,8 @@ class profile::apt (
content
=>
"Apt::Install-Recommends 0;
\n
Apt::AutoRemove::InstallRecommends 1;
\n
"
,
})
# workaround for Docker, which can't infer the following from `lsbdistid`
# fact.
$real_legacy_origin
=
$legacy_origin
?
{
undef
=>
false
,
default
=>
$legacy_origin
}
$real_origins
=
$origins
?
{
undef
=>
[
'origin=Debian,codename=buster,label=Debian'
,
'origin=Debian,codename=buster,label=Debian-Security'
,
],
default
=>
$origins
}
class
{
'unattended_upgrades'
:
auto
=>
{
'reboot'
=>
$auto_reboot
},
legacy_origin
=>
$real_legacy_origin
,
origins
=>
$real_origins
,
class
{
'profile::apt::unattended_upgrades'
:
auto_reboot
=>
$auto_reboot
,
}
}
This diff is collapsed.
Click to expand it.
profile/manifests/apt/unattended_upgrades.pp
0 → 100644
+
23
−
0
View file @
80a2e93d
# APT unattended_upgrades profile
class
profile::apt::unattended_upgrades
(
Boolean
$auto_reboot
=
true
,
)
inherits
unattended_upgrades::params
{
# workaround for Docker, which can't infer the following from `lsbdistid`
# fact.
$real_legacy_origin
=
$legacy_origin
?
{
undef
=>
false
,
default
=>
$legacy_origin
}
$real_origins
=
$origins
?
{
undef
=>
[
'origin=Debian,codename=buster,label=Debian'
,
'origin=Debian,codename=buster,label=Debian-Security'
,
],
default
=>
$origins
}
class
{
'unattended_upgrades'
:
auto
=>
{
'reboot'
=>
$auto_reboot
},
legacy_origin
=>
$real_legacy_origin
,
origins
=>
$real_origins
,
}
}
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