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
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:
>
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
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
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' :
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