From cdf0f40d5b810958c95d68e3623a5827c89b7cf1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 13 Oct 2015 00:11:07 +0200 Subject: reproducible: configure _node_wrapper.sh and sudoers.d correctly --- hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins (limited to 'hosts') diff --git a/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins b/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins new file mode 100644 index 00000000..a0127b67 --- /dev/null +++ b/hosts/profitbricks-build3-amd64/etc/sudoers.d/jenkins @@ -0,0 +1,15 @@ +jenkins ALL= \ + NOPASSWD: /usr/sbin/debootstrap *, \ + /usr/bin/tee /schroots/*, \ + /usr/bin/tee -a /schroots/*, \ + /usr/bin/tee /etc/schroot/chroot.d/jenkins*, \ + /bin/chmod +x /schroots/*, \ + /usr/sbin/chroot /schroots/*, \ + /bin/rm -rf --one-file-system /schroots/*, \ + /bin/rm -rf --one-file-system /srv/live-build/*, \ + /bin/mv /schroots/* /schroots/*, \ + /bin/umount -l /schroots/*, \ + /bin/mount --bind * + +# keep these environment variables +Defaults env_keep += "http_proxy", env_reset -- cgit v1.2.3-70-g09d2