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 in Puppet by Sam
• 4,330 points
39 views

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 by Sirajul
• 40,990 points

Related Questions In Puppet

0 votes
1 answer
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
254 views
0 votes
1 answer