[Puppet Users] Re: augeas, syslog and defining numbered items.

2014-03-17 Thread Trey Ormsbee
Ok, I figured this out. I probably worded my issue badly but what i was looking for is the following: #this sets a variable at the entry[#] level defvar syslog /files/etc/syslog.conf/*[ ./action/file = "/var/log/messages"] #these two add in the new selector entries. set $syslog/selector[last

[Puppet Users] Re: augeas, syslog and defining numbered items.

2014-03-17 Thread trey85stang
> > Ok, > > I figured this out. I probably worded my issue badly but what i was > looking for is the following: > > #this sets a variable at the entry[#] level > defvar syslog /files/etc/syslog.conf/*[ ./action/file = > "/var/log/messages"] > > #these two add in the new selector entries. > se

[Puppet Users] Re: augeas, syslog and defining numbered items.

2014-03-18 Thread trey85stang
One more thing I found, I needed an onlyif for the above puppet line. Here is a little further syntax augeas { "syslog_local6none": incl => "/etc/syslog.conf", lens => "Syslog.lns", changes => [ "defvar syslog *[ ./action/file = \"/var/log/messages\" ]", "set \$sys