projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cafaf46
)
Add buildd to sbuild
author
Peter Palfrader
<peter@palfrader.org>
Sat, 14 Feb 2015 21:43:37 +0000
(22:43 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 14 Feb 2015 21:43:37 +0000
(22:43 +0100)
modules/buildd/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/buildd/manifests/init.pp
b/modules/buildd/manifests/init.pp
index
0c109e0
..
0390300
100644
(file)
--- a/
modules/buildd/manifests/init.pp
+++ b/
modules/buildd/manifests/init.pp
@@
-173,4
+173,11
@@
class buildd ($ensure=present) {
}
}
+
+ if $::buildd_user_exists {
+ exec { 'add-buildd-user-to-sbuild':
+ command => 'adduser buildd sbuild',
+ onlyif => "getent group sbuild > /dev/null && ! getent group sbuild | grep '\\<buildd\\>' > /dev/null"
+ }
+ }
}