Issue #17382 has been updated by eric sorenson. Status changed from Unreviewed to Needs More Information Assignee set to Chad Huneycutt
I think this is because the shell provider changed, so your redirection isn't going to work: http://docs.puppetlabs.com/references/2.7.latest/type.html#exec Does it work if you set `provider => shell` on the exec? Feel free to close it if this fixes the problem for you or assign back to me if not. ---------------------------------------- Bug #17382: exec command quote handling https://projects.puppetlabs.com/issues/17382#change-77833 Author: Chad Huneycutt Status: Needs More Information Priority: Normal Assignee: Chad Huneycutt Category: Target version: Affected Puppet version: Keywords: Branch: I am having a hard time searching for this to see if it has already been reported. This worked on puppet 2.6, but since I upgraded to 2.7.19 it does not. I have an exec like this: exec { foo: path => '/usr/bin', command => "printf '%s\t%s(rw,sync,no_root_squash)\n' '/export/$name' '$name' >> bar", } puppet returns this when it tries to compile it: err: /Stage[main]//Exec[foo]/returns: change from notrun to 0 failed: Could not find command ' ' I suspect the quoting in the command, but I haven't had a chance to simplify it and figure out exactly where the extraction is messing up. -- 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.
