From f5517821bde79ca805e36699914a8a148f187c58 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 12 Apr 2017 14:28:23 -0400 Subject: [PATCH] Add jenkins user sudoers file to nodepool-base Move our jenkins sudo files from puppet to DIB element. Change-Id: Icaceeefbf6c3765d15d0e1488006f9f52661fba3 Signed-off-by: Paul Belanger --- nodepool/elements/nodepool-base/element-deps | 1 + .../nodepool-base/static/etc/sudoers.d/jenkins-sudo-grep.sudo | 1 + .../nodepool-base/static/etc/sudoers.d/jenkins-sudo.sudo | 1 + 3 files changed, 3 insertions(+) create mode 100644 nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo-grep.sudo create mode 100644 nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo.sudo diff --git a/nodepool/elements/nodepool-base/element-deps b/nodepool/elements/nodepool-base/element-deps index 4f8df81254..aabb5497f2 100644 --- a/nodepool/elements/nodepool-base/element-deps +++ b/nodepool/elements/nodepool-base/element-deps @@ -1,3 +1,4 @@ +install-static package-installs pip-and-virtualenv puppet diff --git a/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo-grep.sudo b/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo-grep.sudo new file mode 100644 index 0000000000..49ec0fc78b --- /dev/null +++ b/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo-grep.sudo @@ -0,0 +1 @@ +jenkins ALL = NOPASSWD:/usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh diff --git a/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo.sudo b/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo.sudo new file mode 100644 index 0000000000..48ddd4301e --- /dev/null +++ b/nodepool/elements/nodepool-base/static/etc/sudoers.d/jenkins-sudo.sudo @@ -0,0 +1 @@ +jenkins ALL=(ALL) NOPASSWD:ALL