Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tony Caffe
Thanks. I used this: file {'puppet_sudo': ensure => present, path => '/tmp/puppet_sudo', source => 'puppet:///files/puppet_sudo', owner => 'root', group => 'root', mode =>

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tim Mooney
In regard to: Re: [Puppet Users] Puppet visudo/ sudoers help, Tony Caffe...: I understand but that is not what I asked for help. I would like some help on making or writing the code needed to add users to visudo. $ cat puppet/modules/sudo/manifests/config.pp define sudo::config($content

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tony Caffe
Would I still need to write ruby code? I dont know ruby or really any other programming language. So I would create a duplicate of the sudoers file in /etc/sudoers.d/ that adds a user to it and it will work? I am not to sure of how sudoers.d works. Thanks. -- You received this message because

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Ramin K
On 8/29/2012 8:31 AM, Tony Caffe wrote: Hi, I am trying to get puppet going on CentOS 6.3 and I got it installed and running. I want to create good manifests for basic stuff. I know I will learn more as I go but I am new to programming in general and puppet code. I have puppet master instal

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Christopher Wood
You learn from use one of these: http://forge.puppetlabs.com/modules?q=sudo On Wed, Aug 29, 2012 at 02:13:34PM -0700, Tony Caffe wrote: >I understand but that is not what I asked for help. I would like some help >on making or writing the code needed to add users to visudo. >On Wednesd

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tony Caffe
I understand but that is not what I asked for help. I would like some help on making or writing the code needed to add users to visudo. On Wednesday, August 29, 2012 1:34:35 PM UTC-7, Ygor wrote: > > First suggestion: > > Use a group name ( like "wheel" ) and declare the sudo privileges to the

Re: [Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Dan White
First suggestion: Use a group name ( like "wheel" ) and declare the sudo privileges to the group. Then all you need do is add that group in the "groups" parameter for puppet type user. On Aug 29, 2012, at 11:31 AM, Tony Caffe wrote: > Hi, > > I am trying to get puppet going on CentOS 6.3 and

[Puppet Users] Puppet visudo/ sudoers help

2012-08-29 Thread Tony Caffe
Hi, I am trying to get puppet going on CentOS 6.3 and I got it installed and running. I want to create good manifests for basic stuff. I know I will learn more as I go but I am new to programming in general and puppet code. I have puppet master install on 1 cloud server and a client test puppe