Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-09 Thread Martin Alfke
Or even escape the whitespace: exec { “c:/program\ files/telegraf/telegraf.exe --service install": > On 8. Dec 2020, at 23:25, Michael Watters wrote: > > Probably need to quote the executable due to spaces: > > exec { '"c:/program files/telegraf/telegraf.exe" --service install': > > Looks l

Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-08 Thread Michael Watters
Probably need to quote the executable due to spaces: exec { '"c:/program files/telegraf/telegraf.exe" --service install': Looks like that worked. Thanks for the help. On Tuesday, December 8, 2020 at 1:58:12 PM UTC-5 Josh Cooper wrote: > On Tue, Dec 8, 2020 at 10:37 AM Michael Watters wrote: >

Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-08 Thread Josh Cooper
On Tue, Dec 8, 2020 at 10:37 AM Michael Watters wrote: > Here is the exact error message. > > Info: /Stage[main]/Dart::Abstract::Windows_node/File[c:/program > files/telegraf/telegraf.conf]: Scheduling refresh of Exec[c:/program > files/telegraf/telegraf.exe --service install] > Error: Could not

Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-08 Thread Michael Watters
Here is the exact error message. Info: /Stage[main]/Dart::Abstract::Windows_node/File[c:/program files/telegraf/telegraf.conf]: Scheduling refresh of Exec[c:/program files/telegraf/telegraf.exe --service install] Error: Could not find command 'c:/program' Error: /Stage[main]/Dart::Abstract::Wind

Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-08 Thread Michael Watters
I tried that as well and it simply results in an error stating "Could not find command: c:/program". On Monday, December 7, 2020 at 2:06:53 PM UTC-5 Martin Alfke wrote: > Have you tried using the full path to the executable? > > exec { 'c:/program files/telegraf/telegraf.exe --service install' :

Re: [Puppet Users] Windows exec resource cannot find command error

2020-12-07 Thread Martin Alfke
Have you tried using the full path to the executable? exec { 'c:/program files/telegraf/telegraf.exe --service install' : ... } > On 7. Dec 2020, at 18:17, Michael Watters wrote: > > I have an exec resource in a manifest for our Windows nodes however the > command is failing each time that p