Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Reid Vandewiele commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows This matters in the short term context of PUP-7779 / PUP-5934. Unless we fix this, Windows users can't trivially set postrun_command = "C:\Program Files\PuppetLabs\Puppet\bin\puppet.bat" facts upload The workaround seems to be manually creating a new puppet_facts_upload.bat file and placing it in a path without spaces. E.g. postrun_command = "C:\ProgramData\PuppetLabs\puppet\etc\puppet_facts_upload.bat" This is suboptimal. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Reid Vandewiele updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Reid Vandewiele CS Priority: Needs Priority Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Josh Cooper updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Josh Cooper Sprint: Platform Core Hopper Add Comment This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Maggie Dreyer If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following:Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL > C:\from_postrun.txt'Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postrun_command setting:postrun_command=C:\Windows\System32\cmd.exe /c "type NUL > C:\from_postrun.txt"This was reported by a user running Windows Server 2003 and I was able to replicate in 2008 as well. I investigated the cause and it seems like there is something about how `Puppet::Util::Execution.execute` handles the command argument when it is passed to it as an array that causes the result to be unpalatable to Windows. In `configurer.rb` if I change [ this line |https://github.com/puppetlabs/puppet/blob/master/lib/puppet/configurer.rb#L412] {{Puppet::Util::Execution.execute([command])}} to pass the command argument as a string the postrun command then executes fine. Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Maggie Dreyer If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following:Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL > C:\from_postrun.txt'Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postrun_command setting:postrun_command=C:\Windows\System32\cmd.exe /c "type NUL > C:\from_postrun.txt"This was reported by a user running Windows Server 2003 and I was able to replicate in 2008 as well. I investigated the cause and it seems like there is something about how `Puppet::Util::Execution.execute` handles the command argument when it is passed to it as an array that causes the result to be unpalatable to Windows. In `configurer.rb` if I change this line 220 {{Puppet::Util::Execution.execute([command])}} to pass the command argument as a string the postrun command then executes fine. Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza assigned an issue to Unassigned Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Assignee: Eric Sorenson Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Sprint: Platform Core Grooming Hopper Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Story Points: 3 1 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Sprint: Platform Core Grooming Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Labels: customer triaged windows Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title John Duarte updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: John Duarte Labels: customer triaged windows Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Reid Vandewiele commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows A postrun_command with no spaces and no arguments seems to work. PS C:\windows\system32> & puppet --version 3.8.7 (Puppet Enterprise 3.8.7) PS C:\windows\system32> & puppet apply --postrun_command C:\true.bat -e 'notify { "foo": }' Notice: Compiled catalog for windows-test in environment production in 0.14 seconds Notice: foo Notice: /Stage[main]/Main/Notify[foo]/message: defined 'message' as 'foo' Notice: Finished catalog run in 0.03 seconds Add Comment
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows hi Eric Sorenson - this is still reproducible against current puppet: C:\Users\moses\development\puppet(master)> be puppet apply -e " notify { 'foo': } " --prerun_command="C:\Windows\System32\cmd.exe /c echo foo" --debug --trace Debug: Runtime environment: puppet_version=4.9.0, ruby_version=2.3.0, run_mode=user, default_encoding=IBM437 Debug: Evicting cache entry for environment 'production' Debug: Caching environment 'production' (ttl = 0 sec) Debug: Loading external facts from C:/ProgramData/PuppetLabs/puppet/cache/facts.d Info: Loading facts ... Notice: Compiled catalog for win-ghb4gdkiluo.localdomain in environment production in 0.10 seconds Debug: Creating default schedules
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Eric Sorenson commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows From the comments it looks like this may be ruby version related - also I don't see a repro under a Puppet 4 version. Can one of the interested watchers please reproduce on windows Puppet Agent 1.8+? I will close as cannot reproduce for the moment, please re-open if you have a repro case. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Geoff Nichols Sprint: AP Holding Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Geoff Nichols assigned an issue to Eric Sorenson Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Geoff Nichols Assignee: Eric Sorenson Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Geoff Nichols Story Points: 3 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Geoff Nichols Sprint: AP Grooming Top 10 2016-11-02 Holding Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Geoff Nichols updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Geoff Nichols Acceptance Criteria: - Run puppet-agent w/prerun command to run puppet.- Confirm that puppet ran successfully. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows cc Geoff Nichols tossed this in the top 10 grooming sprint Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Sprint: AP Grooming Top 10 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Story Points: 2 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Priority: Normal Major Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Moses Mendoza Fix Version/s: PUP 4.y Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Kenaz Kwa updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Kenaz Kwa Team: Agent & Platform Support Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Jeff Sparrow commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows Rakesh Kathpal Did you ever find a work around? Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Eric Sorenson updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Eric Sorenson Fix Version/s: PUP4.0.0 Fix Version/s: PUP4.x Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Eric Sorenson commented on PUP-1431 Re: Pre/Post-run commands don't work under Windows Not a major-version-boundary issue but we want to get it fixed soon after Puppet 4.0. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Rakesh Kathpal commented on an issue Re: Pre/Post-run commands don't work under Windows Hi, I am facing this issue currently on multiple windows servers, is there a workaround for this issue I am on open source puppet 3.4.2 Add Comment Puppet / PUP-1431 Pre/Post-run commands don't work under Windows If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postr... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Joshua Cooper commented on an issue Re: Pre/Post-run commands don't work under Windows Ken Johnson I suspect it works fine on *nix, because there are two different exec code paths for *nix and Windows as described in PUP-1435 Add Comment Puppet / PUP-1431 Pre/Post-run commands don't work under Windows If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postr... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Ken Johnson commented on an issue Re: Pre/Post-run commands don't work under Windows Joshua Cooper That makes sense. Add Comment Puppet / PUP-1431 Pre/Post-run commands don't work under Windows If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postr... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Ken Johnson commented on an issue Re: Pre/Post-run commands don't work under Windows With that in mind, shouldn't this be breaking under *nix as well? I found that postrun commands worked fine on my installations on some Linux machines. Add Comment Puppet / PUP-1431 Pre/Post-run commands don't work under Windows If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postr... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Ken Johnson created an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Issue Type: Bug Affects Versions: 3.2.4 Assignee: Unassigned Created: 13/Jan/14 1:10 PM Environment: PE 3.0.1 agent, Windows Server 2003 and 2008 x64 Labels: customer Priority: Normal Reporter: Ken Johnson If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified. Example postrun_command setting: postrun_command=C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt This was reported by a user running Windows Server 2003 and I was able to replicate in 2008 as well. I investigated the cause and it seems like there is something about how
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Joshua Cooper commented on an issue Re: Pre/Post-run commands don't work under Windows It used to be that ruby 1.8 would silently convert between strings and single-element arrays, so this may have worked with ruby 1.8.7, but doesn't with 1.9 (which PE 3.x ships with) Also PUP-1435 is related since this is another case of passing an array containing a space-delimited string to Puppet::Util.execute. Add Comment Puppet / PUP-1431 Pre/Post-run commands don't work under Windows If a postrun or prerun command is specified in puppet.conf on a Windows host it will fail to execute with a message like the following: Debug: Executing 'C:\Windows\System32\cmd.exe /c type NUL C:\from_postrun.txt' Error: Could not run command from postrun_command: CreateProcess() failed: The system cannot find the file specified.Example postr... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to
Jira (PUP-1431) Pre/Post-run commands don't work under Windows
Title: Message Title Joshua Cooper updated an issue Puppet / PUP-1431 Pre/Post-run commands don't work under Windows Change By: Joshua Cooper Labels: customer windows Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.