Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lonlone Lee
base
Commits
f3bdae3a
Commit
f3bdae3a
authored
Nov 06, 2015
by
Adam Lewenberg
Browse files
address sudo when debuild is installed
parent
c16f492c
Changes
2
Show whitespace changes
Inline
Side-by-side
manifests/sudo.pp
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
...
...
templates/sudo/etc/pam.d/sudo.erb
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
-%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment