Re: [Puppet Users] Help with augeas

2013-02-27 Thread Dominic Cleal
On 27/02/13 07:28, Adam Crews wrote:
 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 to change createSession from 10 to 11.
 
 my puppet code is:
 
 augeas { test:
   lens= Property.lns,

This line doesn't look correct, it should be Properties.lns to match the
module you downloaded.

-- 
Dominic Cleal
Red Hat Engineering

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Help with augeas

2013-02-27 Thread Adam Crews
On Wed, Feb 27, 2013 at 1:43 AM, Dominic Cleal dcl...@redhat.com 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.

-Adam

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.