Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (26 sloc) 0.8 kb

Sudo Puppet module

The definition sudo::directive provides a simple way to write sudo configurations parts.

Use

`directive`s are blocks of literal text as you would write to sudoers.

If you have a class of users named users::virtual and a virtual Group named admin:

class example {
  include sudo
  include users::virtual

  realize(Group['admin'])

  sudo::directive {'admin_users':
    ensure  => present,
    content => "%admin ALL=(ALL) ALL",
    require => Group['admin'],
  }
}

About

This module is provided to you by Camptocamp.

For more information about sudo see http://www.gratisoft.us/sudo/

Jump to Line
Something went wrong with that request. Please try again.