Configure saz/sudo module with hiera.

149 views
Skip to first unread message

mike

unread,
Jun 2, 2014, 11:48:56 AM6/2/14
to puppet...@googlegroups.com
Hi,
I'm migrate my Puppet setting to Hiera, now I try configure saz/sudo module i've create my users under "/etc/sudoers.d/10_user" without problem with Hiera:

sudo::configs:
    'user':
        'content'   : "%myGroup ALL=(ALL) NOPASSWD: ALL"
        'priority'  : 10

But i've two nodes that use the specific /etc/sudoers template my question are: 

1. ¿How to specifying a sudoers file?
2. ¿How to add new group "myGroup"?

I read the info in the site but i don't understand the how solved my question.

Thanks. 

Felix Frank

unread,
Jun 4, 2014, 7:43:18 AM6/4/14
to puppet...@googlegroups.com
Hi,

On 06/02/2014 05:48 PM, mike wrote:
> 1. ¿How to specifying a sudoers file?

from what I understand, the Hiera data you posted would actually use
/etc/sudoers.d/user. The resource title defines the file name.

> 2. ¿How to add new group "myGroup"?

The sudo module does not concern itself with the management of groups.
There is a builtin resource type in core puppet:
http://docs.puppetlabs.com/references/latest/type.html#group

HTH,
Felix
Reply all
Reply to author
Forward
0 new messages