What version of augeas are you using? I am on 0.5.3 I don't think support has been added to do some of that functionality I am going to upgrade
On Fri, Jun 4, 2010 at 10:33 AM, Rob McBroom <[email protected]>wrote: > On Jun 4, 2010, at 10:20 AM, Christopher Johnston wrote: > > > I tried using the "alias" option as an identifier, but have not been > succesful with it. I will play that a little bit more as I think that may > be the only way to do it that I know of. > > It looks like you can use the port/protocol combination. At least it works > for printing. I haven't tested it to create a new entry. > > augtool> print /files/etc/services/service-name[port = '443'][protocol = > 'tcp'] > /files/etc/services/service-name[161] = "https" > /files/etc/services/service-name[161]/port = "443" > /files/etc/services/service-name[161]/protocol = "tcp" > /files/etc/services/service-name[161]/#comment = "MCom" > > -- > Rob McBroom > <http://www.skurfer.com/> > > Don't try to tell me something is important to you if the whole of your > “support” entails getting Congress to force *others* to spend time and money > on it. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
