Hi, i'm currently developing some manifests using the augeas provider ( mostly using the sudoers lens) and I am permanently running into trouble.
It seems that the augeas provider and augtool behave differently regarding path declarations, making it worse to test and develop things. But perhaps i'm just doing it wrong :) While a snipplet like "set Cmnd_Alias[alias/name = 'HOMEMGMT']/alias/name HOMEMGMT", "set Cmnd_Alias[alias/name = 'HOMEMGMT']/alias/command[1] '/bin/mkdir'", "set Cmnd_Alias[alias/name = 'HOMEMGMT']/alias/command[2] '/bin/chmod'", "set Cmnd_Alias[alias/name = 'HOMEMGMT']/alias/command[3] '/bin/chown'" works perfectly fine while using it as the changes content in an augeas puppet ressource, I see the following while running it on the same (puppet-generated) suoders file in augtool: #~> augtool print /files/etc/sudoers/Cmnd_Alias[2] /files/etc/sudoers/Cmnd_Alias[2] /files/etc/sudoers/Cmnd_Alias[2]/alias /files/etc/sudoers/Cmnd_Alias[2]/alias/name = "HOMEMGMT" /files/etc/sudoers/Cmnd_Alias[2]/alias/command[1] = "/bin/mkdir" /files/etc/sudoers/Cmnd_Alias[2]/alias/command[2] = "/bin/chmod" /files/etc/sudoers/Cmnd_Alias[2]/alias/command[3] = "/bin/chown" #~> So all fine, it's there. Same again using a more explicit path declaration in augtool - as done above in the (working) puppet manifest: #~>augtool print /files/etc/sudoers/Cmnd_Alias[alias/name = "HOMEMGMT"] #~> I would have expected exactly the same output as before, but something's going wrong. Any ideas? regards, Björn -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/461d33ee-bda2-429b-a650-793ab0c985dd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.