Hi, Please help me in following: I''m trying to check ntp.conf files some of which have and some have not lines like these server ntp1.example.com server ntp2.example.com server ntp3.example.com How I should form onlyif condition with match to make it working: now I have either it is not working at all or just accumulating additional lines. May be I have to separate this to 3 sets each per server? From other side using some regexp like ntp[123] could make it shorter and more readable. Sorry for my puppet/augeas stile: class ntpd{ service { ntpd: name => "ntpd", enable => true, ensure => running, require => File["/etc/ntp.conf"], } file { "/etc/ntp.conf" : owner => "root", group => "root", mode => 664, require => [Package["ntp"], Augeas["/etc/ntp.conf"]] } package { ntp: ensure => present } augeas{"/etc/ntp.conf": context => "/files/etc/ntp.conf", changes => [ "set server[last()+1] ntp1.example.com", "set server[last()+1] ntp2.example.com", "set server[last()+1] ntp3.example.com", ], onlyif => "match server[last()] != ''ntp3.logitech.com''", # onlyif => "match server != [''ntp1.logitech.com'', ''ntp2.logitech.com'', ''ntp3.logitech.com'']" } } Also is any way to check what is happening on REMOTE side at time of puppet/augeas execution? Any remote debug and some file reference to accept this debug log? Please advise, Alex -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jul 9, 2010, at 7:45 PM, altimon wrote:> How I should form onlyif condition with match to make it working: > now I have either it is not working at all or just accumulating > additional lines.I would avoid using a combination of “last()” and “onlyif” whenever possible. See the recent discussions on managing `/etc/services` and `/etc/sudoers` with Augeas to see what I mean. I can’t test `ntp.conf` (don’t seem to have the lens for it), but just guessing something like this will do what you want reliably without having to craft a messy “onlyif”: augeas{"/etc/ntp.conf": context => "/files/etc/ntp.conf", changes => [ "set server[server = ''ntp1.example.com''] ntp1.example.com", "set server[server = ''ntp2.example.com''] ntp2.example.com", "set server[server = ''ntp3.example.com''] ntp3.example.com", ], } It looks weird, but I’ve done similar things and been much happier with the outcome. Basically, on the first run, there won’t be a path that matches “server = ''ntp1.example.com’” so Augeas will create it and set the value. On subsequent runs, it finds something at that path, sees that it’s already set to the desired value, and does nothing. The syntax above might not work exactly as is, but hopefully you get the idea. -- Rob McBroom <http://www.skurfer.com/> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi Rob and ALL, Unfortunately, following pp file creating 1st instances and then are adding new ( I''ve tried just one ntp1 or triad ntp1,2,3 ) class ntpd{ service { ntpd: name => "ntpd", enable => true, ensure => running, require => File["/etc/ntp.conf"], } file { "/etc/ntp.conf" : owner => "root", group => "root", mode => 664, require => [Package["ntp"], Augeas["/etc/ntp.conf"]] } package { ntp: ensure => present } augeas{"/etc/ntp.conf": context => "/files/etc/ntp.conf", changes => [ "set server[server = ''ntp1.example.com''] ''ntp1.example.com''", "set server[server = ''ntp2.example.com''] ''ntp2.example.com''", "set server[server = ''ntp3.example.com''] ''ntp3.example.com''", ], } } On Jul 12, 12:33 pm, Rob McBroom <mailingli...@skurfer.com> wrote:> On Jul 9, 2010, at 7:45 PM, altimon wrote: > > > How I should form onlyif condition with match to make it working: > > now I have either it is not working at all or just accumulating > > additional lines. > > I would avoid using a combination of “last()” and “onlyif” whenever possible. See the recent discussions on managing `/etc/services` and `/etc/sudoers` withAugeasto see what I mean.Thank you, I''ll look for it.> > I can’t test `ntp.conf` (don’t seem to have the lens for it), but just guessing something like this will do what you want reliably without having to craft a messy “onlyif”: > > augeas{"/etc/ntp.conf": > context => "/files/etc/ntp.conf", > changes => [ > "set server[server = ''ntp1.example.com''] ntp1.example.com", > "set server[server = ''ntp2.example.com''] ntp2.example.com", > "set server[server = ''ntp3.example.com''] ntp3.example.com", > ], > } >It can be anything else - like nameserver strings in resolv.conf etc.> It looks weird, but I’ve done similar things and been much happier with the outcome. Basically, on the first run, there won’t be a path that matches “server = ''ntp1.example.com’” soAugeaswill create it and set the value. On subsequent runs, it finds something at that path, sees that it’s already set to the desired value, and does nothing. The syntax above might not work exactly as is, but hopefully you get the idea.That is my basic question how to debug augeas - augtool is fine to test some part of future puppet procedure/method but then I can''t debug what is happening at time of puppet execution, except that if I have some syntax error. Also where to look for all these functions like last()? And where is description of augeas behavior? Regards, --Alex Sample of log on client side: Jul 12 16:04:25 host puppetd[25895]: triggered run Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) Failed to retrieve current state of resource: Error sending command ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending command ''set'' with params ["/files/etc/ntp.conf/server", "["] Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) Dependency augeas[/etc/ntp.conf] has 1 failures Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) Skipping because of failed dependencies Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency augeas[/etc/ntp.conf] has 1 failures Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping because of failed dependencies Jul 12 16:04:31 host puppetd[25895]: Finished catalog run in 1.58 seconds Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) Failed to retrieve current state of resource: Error sending command ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending command ''set'' with params ["/files/etc/ntp.conf/server", "["] Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) Dependency augeas[/etc/ntp.conf] has 1 failures Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) Skipping because of failed dependencies Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency augeas[/etc/ntp.conf] has 1 failures Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping because of failed dependencies Jul 12 16:08:45 host puppetd[25895]: Finished catalog run in 1.52 seconds Jul 12 16:18:04 host puppetd[25895]: triggered run Jul 12 16:18:10 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ returns) executed successfully Jul 12 16:18:11 host puppetd[25895]: Finished catalog run in 2.75 seconds Jul 12 16:18:20 host puppetd[25895]: triggered run Jul 12 16:18:27 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ returns) executed successfully Jul 12 16:18:27 host puppetd[25895]: Finished catalog run in 2.68 seconds> > -- > Rob McBroom > <http://www.skurfer.com/>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Darren Chamberlain
2010-Jul-13 03:25 UTC
Re: [Puppet Users] Re: puppet and augeas to keep ntp.conf
Since you''re using the same three NTP servers, couldn''t you just copy ntp.conf from a fileserver? * altimon <altimon at gmail.com> [2010/07/12 16:35]:> Hi Rob and ALL, > > Unfortunately, > > following pp file creating 1st instances and then are adding new > ( I''ve tried just one ntp1 or triad ntp1,2,3 ) > > class ntpd{ > > service { ntpd: > name => "ntpd", > enable => true, > ensure => running, > require => File["/etc/ntp.conf"], > } > > file { "/etc/ntp.conf" : > owner => "root", > group => "root", > mode => 664, > require => [Package["ntp"], Augeas["/etc/ntp.conf"]] > } > > package { ntp: ensure => present } > > augeas{"/etc/ntp.conf": > context => "/files/etc/ntp.conf", > changes => [ > "set server[server = ''ntp1.example.com''] > ''ntp1.example.com''", > "set server[server = ''ntp2.example.com''] > ''ntp2.example.com''", > "set server[server = ''ntp3.example.com''] > ''ntp3.example.com''", > ], > } > > } > > > > On Jul 12, 12:33 pm, Rob McBroom <mailingli...@skurfer.com> wrote: > > On Jul 9, 2010, at 7:45 PM, altimon wrote: > > > > > How I should form onlyif condition with match to make it working: > > > now I have either it is not working at all or just accumulating > > > additional lines. > > > > I would avoid using a combination of “last()” and “onlyif” whenever possible. See the recent discussions on managing `/etc/services` and `/etc/sudoers` withAugeasto see what I mean. > > Thank you, I''ll look for it. > > > > > I can’t test `ntp.conf` (don’t seem to have the lens for it), but just guessing something like this will do what you want reliably without having to craft a messy “onlyif”: > > > > augeas{"/etc/ntp.conf": > > context => "/files/etc/ntp.conf", > > changes => [ > > "set server[server = ''ntp1.example.com''] ntp1.example.com", > > "set server[server = ''ntp2.example.com''] ntp2.example.com", > > "set server[server = ''ntp3.example.com''] ntp3.example.com", > > ], > > } > > > > It can be anything else - like nameserver strings in resolv.conf etc. > > > It looks weird, but I’ve done similar things and been much happier with the outcome. Basically, on the first run, there won’t be a path that matches “server = ''ntp1.example.com’” soAugeaswill create it and set the value. On subsequent runs, it finds something at that path, sees that it’s already set to the desired value, and does nothing. The syntax above might not work exactly as is, but hopefully you get the idea. > > That is my basic question how to debug augeas - augtool is fine to > test some part of future puppet procedure/method but then I can''t > debug what is happening at time of puppet execution, except that if I > have some syntax error. > > > > Also where to look for all these functions like last()? > > And where is description of augeas behavior? > > Regards, > > --Alex > > Sample of log on client side: > > Jul 12 16:04:25 host puppetd[25895]: triggered run > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > Failed to retrieve current state of resource: Error sending command > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > Dependency augeas[/etc/ntp.conf] has 1 failures > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > Skipping because of failed dependencies > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > augeas[/etc/ntp.conf] has 1 failures > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > because of failed dependencies > Jul 12 16:04:31 host puppetd[25895]: Finished catalog run in 1.58 > seconds > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > Failed to retrieve current state of resource: Error sending command > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > Dependency augeas[/etc/ntp.conf] has 1 failures > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > Skipping because of failed dependencies > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > augeas[/etc/ntp.conf] has 1 failures > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > because of failed dependencies > Jul 12 16:08:45 host puppetd[25895]: Finished catalog run in 1.52 > seconds > Jul 12 16:18:04 host puppetd[25895]: triggered run > Jul 12 16:18:10 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > returns) executed successfully > Jul 12 16:18:11 host puppetd[25895]: Finished catalog run in 2.75 > seconds > Jul 12 16:18:20 host puppetd[25895]: triggered run > Jul 12 16:18:27 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > returns) executed successfully > Jul 12 16:18:27 host puppetd[25895]: Finished catalog run in 2.68 > seconds > > > > > > > -- > > Rob McBroom > > <http://www.skurfer.com/> > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- He who has never configured `sendmail.cf'' has no courage. He who has configured it more than once has no brain. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi ALL, Copy full file? Yes, in some assumption. But then why puppet at all, I could send and replace files with mass.pl that is working now just fine. For me it is mostly studying (puppet and augeas) problem, just to understand/feel tools. In general I have different groups with different set of servers. So there is no debug technic? No debug setting for execution on client side? Regards, --Alex On Jul 12, 8:25 pm, Darren Chamberlain <dar...@boston.com> wrote:> Since you''re using the same threeNTPservers, couldn''t you just > copyntp.conf from a fileserver? > > * altimon <altimon at gmail.com> [2010/07/12 16:35]: > > > > > > > Hi Rob and ALL, > > > Unfortunately, > > > following pp file creating 1st instances and then are adding new > > ( I''ve tried just one ntp1 or triad ntp1,2,3 ) > > > class ntpd{ > > > service { ntpd: > > name => "ntpd", > > enable => true, > > ensure => running, > > require => File["/etc/ntp.conf"], > > } > > > file { "/etc/ntp.conf" : > > owner => "root", > > group => "root", > > mode => 664, > > require => [Package["ntp"],Augeas["/etc/ntp.conf"]] > > } > > > package {ntp: ensure => present } > > > augeas{"/etc/ntp.conf": > > context => "/files/etc/ntp.conf", > > changes => [ > > "set server[server = ''ntp1.example.com''] > > ''ntp1.example.com''", > > "set server[server = ''ntp2.example.com''] > > ''ntp2.example.com''", > > "set server[server = ''ntp3.example.com''] > > ''ntp3.example.com''", > > ], > > } > > > } > > > On Jul 12, 12:33 pm, Rob McBroom <mailingli...@skurfer.com> wrote: > > > On Jul 9, 2010, at 7:45 PM, altimon wrote: > > > > > How I should form onlyif condition with match to make it working: > > > > now I have either it is not working at all or just accumulating > > > > additional lines. > > > > I would avoid using a combination of last() and onlyif whenever possible. See the recent discussions on managing `/etc/services` and `/etc/sudoers` withAugeasto see what I mean. > > > Thank you, I''ll look for it. > > > > I can t test `ntp.conf` (don t seem to have the lens for it), but just guessing something like this will do what you want reliably without having to craft a messy onlyif : > > > >augeas{"/etc/ntp.conf": > > > context => "/files/etc/ntp.conf", > > > changes => [ > > > "set server[server = ''ntp1.example.com''] ntp1.example.com", > > > "set server[server = ''ntp2.example.com''] ntp2.example.com", > > > "set server[server = ''ntp3.example.com''] ntp3.example.com", > > > ], > > > } > > > It can be anything else - like nameserver strings in resolv.conf etc. > > > > It looks weird, but I ve done similar things and been much happier with the outcome. Basically, on the first run, there won t be a path that matches server = ''ntp1.example.com soAugeaswill create it and set the value. On subsequent runs, it finds something at that path, sees that it s already set to the desired value, and does nothing. The syntax above might not work exactly as is, but hopefully you get the idea. > > > That is my basic question how to debugaugeas- augtool is fine to > > test some part of future puppet procedure/method but then I can''t > > debug what is happening at time of puppet execution, except that if I > > have some syntax error. > > > Also where to look for all these functions like last()? > > > And where is description ofaugeasbehavior? > > > Regards, > > > --Alex > > > Sample of log on client side: > > > Jul 12 16:04:25 host puppetd[25895]: triggered run > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > > Failed to retrieve current state of resource: Error sending command > > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Dependencyaugeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Skipping because of failed dependencies > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > >augeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > > because of failed dependencies > > Jul 12 16:04:31 host puppetd[25895]: Finished catalog run in 1.58 > > seconds > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > > Failed to retrieve current state of resource: Error sending command > > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Dependencyaugeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Skipping because of failed dependencies > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > >augeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > > because of failed dependencies > > Jul 12 16:08:45 host puppetd[25895]: Finished catalog run in 1.52 > > seconds > > Jul 12 16:18:04 host puppetd[25895]: triggered run > > Jul 12 16:18:10 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > > returns) executed successfully > > Jul 12 16:18:11 host puppetd[25895]: Finished catalog run in 2.75 > > seconds > > Jul 12 16:18:20 host puppetd[25895]: triggered run > > Jul 12 16:18:27 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > > returns) executed successfully > > Jul 12 16:18:27 host puppetd[25895]: Finished catalog run in 2.68 > > seconds > > > > -- > > > Rob McBroom > > > <http://www.skurfer.com/> > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > -- > He who has never configured `sendmail.cf'' has no courage. > He who has configured it more than once has no brain.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Reading http://www.w3.org/TR/xpath/ On Jul 12, 8:25 pm, Darren Chamberlain <dar...@boston.com> wrote:> Since you''re using the same threeNTPservers, couldn''t you just > copyntp.conf from a fileserver? > > * altimon <altimon at gmail.com> [2010/07/12 16:35]: > > > > > > > Hi Rob and ALL, > > > Unfortunately, > > > following pp file creating 1st instances and then are adding new > > ( I''ve tried just one ntp1 or triad ntp1,2,3 ) > > > class ntpd{ > > > service { ntpd: > > name => "ntpd", > > enable => true, > > ensure => running, > > require => File["/etc/ntp.conf"], > > } > > > file { "/etc/ntp.conf" : > > owner => "root", > > group => "root", > > mode => 664, > > require => [Package["ntp"],Augeas["/etc/ntp.conf"]] > > } > > > package {ntp: ensure => present } > > > augeas{"/etc/ntp.conf": > > context => "/files/etc/ntp.conf", > > changes => [ > > "set server[server = ''ntp1.example.com''] > > ''ntp1.example.com''", > > "set server[server = ''ntp2.example.com''] > > ''ntp2.example.com''", > > "set server[server = ''ntp3.example.com''] > > ''ntp3.example.com''", > > ], > > } > > > } > > > On Jul 12, 12:33 pm, Rob McBroom <mailingli...@skurfer.com> wrote: > > > On Jul 9, 2010, at 7:45 PM, altimon wrote: > > > > > How I should form onlyif condition with match to make it working: > > > > now I have either it is not working at all or just accumulating > > > > additional lines. > > > > I would avoid using a combination of last() and onlyif whenever possible. See the recent discussions on managing `/etc/services` and `/etc/sudoers` withAugeasto see what I mean. > > > Thank you, I''ll look for it. > > > > I can t test `ntp.conf` (don t seem to have the lens for it), but just guessing something like this will do what you want reliably without having to craft a messy onlyif : > > > >augeas{"/etc/ntp.conf": > > > context => "/files/etc/ntp.conf", > > > changes => [ > > > "set server[server = ''ntp1.example.com''] ntp1.example.com", > > > "set server[server = ''ntp2.example.com''] ntp2.example.com", > > > "set server[server = ''ntp3.example.com''] ntp3.example.com", > > > ], > > > } > > > It can be anything else - like nameserver strings in resolv.conf etc. > > > > It looks weird, but I ve done similar things and been much happier with the outcome. Basically, on the first run, there won t be a path that matches server = ''ntp1.example.com soAugeaswill create it and set the value. On subsequent runs, it finds something at that path, sees that it s already set to the desired value, and does nothing. The syntax above might not work exactly as is, but hopefully you get the idea. > > > That is my basic question how to debugaugeas- augtool is fine to > > test some part of future puppet procedure/method but then I can''t > > debug what is happening at time of puppet execution, except that if I > > have some syntax error. > > > Also where to look for all these functions like last()? > > > And where is description ofaugeasbehavior? > > > Regards, > > > --Alex > > > Sample of log on client side: > > > Jul 12 16:04:25 host puppetd[25895]: triggered run > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > > Failed to retrieve current state of resource: Error sending command > > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Dependencyaugeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Skipping because of failed dependencies > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > >augeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:04:31 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > > because of failed dependencies > > Jul 12 16:04:31 host puppetd[25895]: Finished catalog run in 1.58 > > seconds > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]) > > Failed to retrieve current state of resource: Error sending command > > ''set'' with params ["/files/etc/ntp.conf/server", "["]/Error sending > > command ''set'' with params ["/files/etc/ntp.conf/server", "["] > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Dependencyaugeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/File[/etc/ntp.conf]) > > Skipping because of failed dependencies > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Dependency > >augeas[/etc/ntp.conf] has 1 failures > > Jul 12 16:08:45 host puppetd[25895]: (//ntpd/Service[ntpd]) Skipping > > because of failed dependencies > > Jul 12 16:08:45 host puppetd[25895]: Finished catalog run in 1.52 > > seconds > > Jul 12 16:18:04 host puppetd[25895]: triggered run > > Jul 12 16:18:10 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > > returns) executed successfully > > Jul 12 16:18:11 host puppetd[25895]: Finished catalog run in 2.75 > > seconds > > Jul 12 16:18:20 host puppetd[25895]: triggered run > > Jul 12 16:18:27 host puppetd[25895]: (//ntpd/Augeas[/etc/ntp.conf]/ > > returns) executed successfully > > Jul 12 16:18:27 host puppetd[25895]: Finished catalog run in 2.68 > > seconds > > > > -- > > > Rob McBroom > > > <http://www.skurfer.com/> > > > -- > > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/puppet-users?hl=en. > > -- > He who has never configured `sendmail.cf'' has no courage. > He who has configured it more than once has no brain.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Rob McBroom
2010-Jul-14 18:52 UTC
Re: [Puppet Users] Re: puppet and augeas to keep ntp.conf
On Jul 12, 2010, at 7:35 PM, altimon wrote:> Unfortunately, > > following pp file creating 1st instances and then are adding new > ( I''ve tried just one ntp1 or triad ntp1,2,3 )Also where to look for all these functions like last()?I was just guessing syntax. It’s probably wrong, but I’m sure there’s something along those lines that’ll work.> And where is description of augeas behavior?This is a good place to start: http://augeas.net/page/Path_expressions -- Rob McBroom <http://www.skurfer.com/> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.