mirror of
git://git.savannah.gnu.org/guix/maintenance.git
synced 2023-12-14 03:33:04 +01:00
hydra: overdrive: Allow un-authenticated sudo to wheel group.
This enables reconfiguring the overdrive machines via 'guix deploy'. * hydra/modules/sysadmin/overdrive.scm (overdrive-system) [sudoers-file]: New field.
This commit is contained in:
parent
ae6efd3523
commit
8cd6fbee6d
|
@ -30,6 +30,8 @@
|
|||
#:use-module (gnu services mcron)
|
||||
#:use-module (gnu services ssh)
|
||||
#:use-module (gnu services vpn)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module ((sysadmin services) #:select (berlin-wireguard-peer))
|
||||
#:export (overdrive-system))
|
||||
|
||||
|
@ -167,4 +169,16 @@
|
|||
'("--max-jobs=2" "--cores=3")))))))
|
||||
|
||||
(packages (cons* btrfs-progs screen openssh strace nss-certs
|
||||
%base-packages))))
|
||||
%base-packages))
|
||||
|
||||
;; Allow sysadmins (sudoers) to use 'sudo' without a password so
|
||||
;; they can 'guix deploy' these machines as their own user.
|
||||
(sudoers-file
|
||||
(plain-file "sudoers"
|
||||
(string-join
|
||||
(append (remove (cut string-prefix? "%wheel" <>)
|
||||
(string-split
|
||||
(string-trim-right (plain-file-content
|
||||
%sudoers-specification))
|
||||
#\newline))
|
||||
(list "%wheel ALL = NOPASSWD: ALL\n")) "\n")))))
|
||||
|
|
Loading…
Reference in a new issue