Skip to content
Snippets Groups Projects
Commit ae00cce4 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add information about sudo class

parent 388713bf
No related branches found
No related tags found
No related merge requests found
...@@ -29,3 +29,20 @@ chroot environments for Debian `sid`, `stretch`, `jessie`, and Ubuntu ...@@ -29,3 +29,20 @@ chroot environments for Debian `sid`, `stretch`, `jessie`, and Ubuntu
} }
The above also installs a daily cron job to update the chroots. The above also installs a daily cron job to update the chroots.
## Using sudo
In order to run `pbuilder` as a non-root user you need to add the
following line to `/etc/sudoers`:
%root ALL = NOPASSWD: /usr/sbin/cowbuilder
The `su_debuild` module provides a convenience class to do this,
`su_debuild::sudo`. Here is how you can install all the packages, chroots,
and set up sudo:
include su_debuild
include su_debuild::sudo
class { 'su_debuild::chroots':
chroots => [ 'sid', 'stretch', 'jessie', 'bionic']
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment