Issue #5317 has been updated by John Warburton.
James This is the same issue (now issue #4884) - with the assumption (and experienced in 0.25.x) that exec is passed to a shell. Please mark as a dup Regards John ---------------------------------------- Bug #5317: 2.6.3rc3 exec cannot start with a subshell https://projects.puppetlabs.com/issues/5317 Author: John Warburton Status: Needs more information Priority: Normal Assignee: Category: exec Target version: Affected Puppet version: Keywords: exec subshell Branch: exec { 'subshell': command => "(date -u; date ) > /tmp/subshell", creates => '/tmp/subshell', path => "/bin:/usr/bin:/usr/sbin", } Puppet 0.25.5 works # export RUBYLIB=/opt/local/pkgs/puppet-0.25.5/lib:/opt/local/lib:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.8/sparc-solaris2.10 # /opt/local/pkgs/puppet-0.25.5/bin/puppet --verbose /tmp/subshell.pp info: Applying configuration version '1289875917' notice: //Exec[subshell]/returns: executed successfully Puppet 2.6.3rc3 fails # export RUBYLIB=/opt/local/pkgs/puppet-2.6.3rc3/lib:/opt/local/lib:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.8/sparc-solaris2.10 # /opt/local/pkgs/puppet-2.6.3rc3/bin/puppet --verbose /tmp/subshell.pp info: Applying configuration version '1289876003' err: /Stage[main]//Exec[subshell]/returns: change from notrun to 0 failed: Could not find command '(date' Start the exec command with an alphanumeric, and it is OK exec { 'subshell': command => "echo ; (date -u; date ) > /tmp/subshell", creates => '/tmp/subshell', path => "/bin:/usr/bin:/usr/sbin", } # /opt/local/pkgs/puppet-2.6.3rc3/bin/puppet --verbose /tmp/subshell.pp info: Applying configuration version '1289876164' notice: /Stage[main]//Exec[subshell]/returns: executed successfully -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
