Re: [Puppet Users] Help with augeas

2013-02-27 Thread Adam Crews
On Wed, Feb 27, 2013 at 1:43 AM, Dominic Cleal wrote: >> >> augeas { "test": >> lens=> "Property.lns", > > This line doesn't look correct, it should be Properties.lns to match the > module you downloaded. > Yep, that was the problem. Thanks for the 2nd set of eye to catch the typo. -A

[Puppet Users] Help with augeas

2013-02-26 Thread Adam Crews
Hello, I'm trying to manage a properties file used by a java program with augeas. I'm using PE 2.7.1 on a CentOS 5 machine. Sample content is: # Sample file /home/acrews/test.properties session.securityLevel.createSession=10 session.securityLevel.listFiles=10 low.session.timeout=15 # eof I want

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-03 Thread Adam Crews
On Thu, Nov 3, 2011 at 12:41 PM, Jo Rhett wrote: > Nigel, As you've said, the time chosen for the run cycle will be consistent. >  All of these settings are already set -- this isn't a question of how to > change how often to run, it's how to affect the chosen runtime? > I've got an awful lot of s

Re: [Puppet Users] Stored configs - error

2011-02-02 Thread Adam Crews
On Mon, Jan 31, 2011 at 1:51 PM, Matthew Ceroni wrote: > I have struggled with this issue for a long time without any resolution. > > This showed up in previous versions (0.25) and suggestions were to upgrade > to the latest - currently running 2.6.3 on RHEL5. > > The errors I get are: > > Jan 31

Re: [Puppet Users] Re: Virtual resources, account module help.

2011-01-18 Thread Adam Crews
On Fri, Jan 14, 2011 at 2:23 AM, luke.bigum wrote: > Hi Adam, > > Shame you can't use LDAP or NIS ;) But anyway... > Yes it makes me sad. I'd really, really, really like to use ldap but my hands are tied. --snip-- > > Lastly, what you're trying to do is complex, especially with Puppet's > "dec

[Puppet Users] Virtual resources, account module help.

2011-01-13 Thread Adam Crews
up_datadir = "/etc/puppet/manifests/extdata" $extlookup_precedence = [ "people" ] $extuser = extlookup("$name") # At this point extuser look like [ "acrews", "1000", "Adam Crews", "/bin/bash", "enable

Re: [Puppet Users] Selector with arrays

2011-01-13 Thread Adam Crews
On Thu, Jan 13, 2011 at 5:04 AM, Felix Frank wrote: > On 01/11/2011 10:48 PM, Adam Crews wrote: >> $info = [ "acrews", "Adam", "/bin/bash" ] >> $shell = $info[2] ? { >>    /bin/ => $info[2], >>    default => "/sbin/nologin&

[Puppet Users] Selector with arrays

2011-01-11 Thread Adam Crews
Hello, I like to use selectors like this in a few locations: $shell = $operatingsystem ? { 'freebsd' => '/usr/local/bin/bash', default => '/bin/bash', } However it appears broken if I use an array value as my selection criteria: $info = [ "acrews", "Adam", "/bin/bash" ] $shell = $info[2]

Re: [Puppet Users] temporarily editing sudoers

2010-05-07 Thread Adam Crews
On Fri, May 7, 2010 at 6:45 AM, Pieter Baele wrote: > We use a script to edit /etc/sudoers temporarily to provide sudo access to > clients for a limited time. > A cron job checks for a var and after a defined time the line is deleted. > > But this way, /etc/sudoers can't be managed by Puppet, beca

[Puppet Users] Re: Stuck with puppet

2009-10-21 Thread Adam Crews
It looks like you are missing the closing " at the end of the source line. -Adam On Oct 21, 2009, at 7:27 AM, Reno wrote: > > Ok now, seems that all is workingalmost.but: > > > class aptsetup { > > file { "/etc/apt/sources.list": > owner => root, > group

[Puppet Users] Re: User's and managing expired passwords

2009-08-28 Thread Adam Crews
On Fri, Aug 28, 2009 at 8:15 AM, Kyle Mallory wrote: > > On Aug 28, 8:18 am, jcbollinger wrote: >> >> It seems a bit strange to me that you are managing users' passwords >> for them in the first place.  It is usually users' responsibility to >> manage their own passwords.  If you really do want t