Hi, Just recently two nodes begun to hang, I cant see that there have been any changes in our manifest. Debug output: [...] debug: //Node[X]/X[X]/Exec[create dir]: Executing check ''test \! -d / dir'' debug: Executing ''test \! -d /dir'' [...] Here it hangs for several minutes, executin the statement manually works of course. The manifest: exec { "create dir": command => "mkdir -p /dir", onlyif => "test \! -d /dir", } What am I missing? -- 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 Aug 31, 2010, at 1:49 AM, Tore wrote:> Hi, > > Just recently two nodes begun to hang, I cant see that there have been > any changes in our manifest. > > Debug output: > [...] > debug: //Node[X]/X[X]/Exec[create dir]: Executing check ''test \! -d / > dir'' > debug: Executing ''test \! -d /dir'' > [...] > > Here it hangs for several minutes, executin the statement manually > works of course. > > The manifest: > exec { "create dir": > command => "mkdir -p /dir", > onlyif => "test \! -d /dir", > } > > What am I missing?This manifest works for me under puppet and finishes in about 5 seconds on a P4: exec { "create dir": path => [''/bin'',''/usr/bin''], command => "mkdir -p /tmp/dir", onlyif => "test \! -d /tmp/dir", } What''s your version of: puppet? puppetmaster? (If applicable) ruby? (on client and server) Are you running it using puppet or puppetd? -- 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 Tue, Aug 31, 2010 at 10:46 AM, Patrick <kc7zzv@gmail.com> wrote:>> >> The manifest: >> exec { "create dir": >> command => "mkdir -p /dir", >> onlyif => "test \! -d /dir", >> } >> >> What am I missing?I know this doesn''t address the original question of timeout, but why not use a file resource to manage the directory? file { "/dir": ensure => directory } -- Jeff McCune http://www.puppetlabs.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.