README.mdwn 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. sudo support in puppet
  2. ======================
  3. To simply install sudo on your servers, use:
  4. include sudo
  5. By default, this will not deploy any sudoers file. Use the following
  6. to make sure a sudoers file is deployed:
  7. class { 'sudo': deploy_sudoers => TRUE }
  8. This will deploy the default sudoers file shipped with the module or
  9. one shipped in your `site_sudo` module, see `manifests/init.pp` for
  10. the search path.
  11. You can also use defines to grant specific access. For example, to
  12. give access to a user:
  13. sudo::access { 'foo': }
  14. This will create a file in `/etc/sudoers.d/01_user_access-foo` with a
  15. content:
  16. foo ALL=(ALL) ALL
  17. You can change parameters, for example a no password access:
  18. sudo::access { 'foo':
  19. user => 'bar',
  20. access => 'ALL = NOPASSWD: ALL'
  21. }
  22. You can also create user aliases with:
  23. sudo::user_alias { 'GROUP': members => 'foo, bar' }
  24. .. which in turn can be used in `sudo::access`:
  25. sudo::access { 'GROUP-access': user => 'GROUP' }