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 puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to