Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
su_debuild
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
puppetpublic
su_debuild
Commits
3d537d93
Commit
3d537d93
authored
4 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
remove the no-longer-needed sudo class
parent
3529d359
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/sudo.pp
+0
-30
0 additions, 30 deletions
manifests/sudo.pp
with
0 additions
and
30 deletions
manifests/sudo.pp
deleted
100644 → 0
+
0
−
30
View file @
3529d359
class
su_debuild::sudo
(
Boolean
$manage_pamd_sudo
=
false
,
)
{
### SUDO ###
ensure_packages
([
'sudo'
],
{
'ensure'
=>
'present'
})
# Install a sudo configuration letting mortals run pdebuild.
file_line
{
'sudo_rule_for_pdebuild'
:
path
=>
'/etc/sudoers'
,
line
=>
'%root ALL = NOPASSWD: /usr/sbin/cowbuilder'
,
}
# Ignore the pbuilder sudos.
file
{
'/etc/filter-syslog/pbuilder'
:
source
=>
'puppet:///modules/su_debuild/etc/filter-syslog/pbuilder'
;
}
if
(
$manage_pamd_sudo
)
{
# To be able to run cowbuilder in AFS, we need to use a special version of
# /etc/pam.d/sudo.
file
{
'/etc/pam.d/sudo'
:
source
=>
'puppet:///modules/su_debuild/etc/pam.d/sudo'
,
require
=>
Package
[
'sudo'
];
}
}
}
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