[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: allow jenkins to run as postgres

Holger Levsen holger at layer-acht.org
Sat Dec 3 15:31:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit a54c8a2cb9b0323747888b80161751f0aacf73e7
Author: Valerie R Young <spectranaut at riseup.net>
Date:   Fri Nov 25 14:19:46 2016 -0500

    reproducible Debian: allow jenkins to run as postgres
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 hosts/jenkins/etc/sudoers.d/jenkins | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/hosts/jenkins/etc/sudoers.d/jenkins b/hosts/jenkins/etc/sudoers.d/jenkins
index 901bcf4..95061a3 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list