This is an old thread, however I was desperate to find an answer for the same question and would like to share what I found out
Am Donnerstag, 13. März 2014 11:04:36 UTC+1 schrieb [email protected]: > > On Wednesday, March 12, 2014 3:35:09 PM UTC+1, kbrede wrote: > > >> How do I append "iburst" at the end of "time.example.com?" >> > > AFAICT in augtool this works: > > set /files/etc/ntp.conf/server[1] "time.example.com iburst" > NOPE, this will not work. Assuming you are in the augtool shell: augtool> match /files/etc/ntp.conf/server /files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org /files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org /files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org /files/etc/ntp.conf/server[4] = 1.ch.pool.ntp.org augtool> match /files/etc/ntp.conf/*[iburst] /files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org /files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org /files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org augtool> set /files/etc/ntp.conf/server[4]/iburst augtool> match /files/etc/ntp.conf/*[iburst] /files/etc/ntp.conf/server[1] = 3.ch.pool.ntp.org /files/etc/ntp.conf/server[2] = 0.ch.pool.ntp.org /files/etc/ntp.conf/server[3] = 2.ch.pool.ntp.org /files/etc/ntp.conf/server[4] = 1.ch.pool.ntp.org > > So, did you actually try the following? Mind the quotes. > > changes => [ > 'ins server before server[1]', > 'set server[1] "time.example.com iburst"' , > ], > > Marco > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/270fab3f-4f57-4458-b991-d06e148f898c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
