summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorValerie R Young <spectranaut@riseup.net>2016-11-25 14:19:46 -0500
committerHolger Levsen <holger@layer-acht.org>2016-12-03 16:30:44 +0100
commita54c8a2cb9b0323747888b80161751f0aacf73e7 (patch)
treefc101e799cf7ddd412c53da7facd8c481be1bb0a /hosts
parenta98541cef4a46cc7bda9bfa30473b86d9a1c6bc5 (diff)
downloadjenkins.debian.net-a54c8a2cb9b0323747888b80161751f0aacf73e7.tar.xz
reproducible Debian: allow jenkins to run as postgres
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts')
-rw-r--r--hosts/jenkins/etc/sudoers.d/jenkins5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/jenkins/etc/sudoers.d/jenkins b/hosts/jenkins/etc/sudoers.d/jenkins
index 901bcf41..95061a32 100644
--- a/hosts/jenkins/etc/sudoers.d/jenkins
+++ b/hosts/jenkins/etc/sudoers.d/jenkins
@@ -48,5 +48,10 @@ jenkins ALL= \
/usr/sbin/slay 2222, \
/usr/sbin/slay jenkins
+jenkins ALL= \
+ (postgres) NOPASSWD: /usr/bin/psql *, \
+ /usr/bin/createuser *, \
+ /usr/bin/createdb *
+
# keep these environment variables
Defaults env_keep += "http_proxy", env_reset