Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
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
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
base
Commits
f3bdae3a
Commit
f3bdae3a
authored
9 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
address sudo when debuild is installed
parent
c16f492c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/sudo.pp
+4
-0
4 additions, 0 deletions
manifests/sudo.pp
templates/sudo/etc/pam.d/sudo.erb
+7
-0
7 additions, 0 deletions
templates/sudo/etc/pam.d/sudo.erb
with
11 additions
and
0 deletions
manifests/sudo.pp
+
4
−
0
View file @
f3bdae3a
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
# $timeout: how long (in minutes) between requiring a new Duo re-auth.
# $timeout: how long (in minutes) between requiring a new Duo re-auth.
# Default: 30
# Default: 30
#
#
# $debuild: set this true if you need to set up a debuild environment.
# Default: false
#
# Example.
# Example.
# To install sudo with no Duo support:
# To install sudo with no Duo support:
#
#
...
@@ -35,6 +38,7 @@ class base::sudo(
...
@@ -35,6 +38,7 @@ class base::sudo(
$duo
=
false
,
$duo
=
false
,
$duo_sudoers
=
[],
$duo_sudoers
=
[],
$timeout
=
30
,
$timeout
=
30
,
$debuild
=
false
,
){
){
package
{
'sudo'
:
package
{
'sudo'
:
ensure
=>
installed
ensure
=>
installed
...
...
This diff is collapsed.
Click to expand it.
templates/sudo/etc/pam.d/sudo.erb
+
7
−
0
View file @
f3bdae3a
...
@@ -14,3 +14,10 @@ account include common-auth
...
@@ -14,3 +14,10 @@ account include common-auth
password include common-auth
password include common-auth
session optional pam_keyinit.so revoke
session optional pam_keyinit.so revoke
session required pam_limits.so
session required pam_limits.so
<%-
if
(
@debuild
)
then
-%>
# Instead of including the stock common-session-noninteractive we
# use parts of it, overriding minimum_uid for pam_afs_session
# so that sudo will be able to get AFS tokens (helps with cowbuilder)
session optional pam_krb5.so minimum_uid=1000
session optional pam_afs_session.so minimum_uid=0
<%-
end
-%>
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