Puppet Error err Stage main Exec C tmp foo exe returns change from notrun to 0 failed CreateProcess failed Access is denied

0 votes

While using Puppet Enterprise with windows, There's an error as shown below:

err: /Stage[main]//Exec[C:/tmp/foo.exe]/returns: change from notrun to 0 failed: CreateProcess() failed: Access is denied.

Please help.

Aug 1, 2019 in Puppet by Sam
• 6,260 points

1 answer to this question.

0 votes

This error occurs when requesting an executable from a remote Puppet master that cannot be executed.

Set the user/group executable bits appropriately on the master:

file { "C:/tmp/foo.exe": 
source => "puppet:///modules/foo/foo.exe",
exec { 'C:/tmp/foo.exe': 
logoutput => true 

This should do!

answered Aug 1, 2019 by Sirajul
• 59,090 points

Related Questions In Puppet

0 votes
1 answer

Error saying "Package[pacman]/ensure: change from absent to present failed: Could not find package pacman"

Hey @Dipti, Add --debug --verbose to see the command ...READ MORE

answered Feb 25, 2019 in Puppet by Nandita
0 votes
1 answer

Puppet: Error while trying to execute shell commands in Exec resource type

The default exec provider on *nix OSes ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 59,090 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer