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' :
> ...
> }
>
> > On 7. Dec 2020, at 18:17, Michael Watters <[email protected]> wrote:
> >
> > I have an exec resource in a manifest for our Windows nodes however the
> command is failing each time that puppet runs. Here is the definition of
> the resource and a screenshot of the error.
> >
> > ~> exec { 'telegraf.exe --service install':
> > cwd => 'c:/program files/telegraf',
> > refreshonly => false,
> > }
> >
> >
> >
> > Is there a way to resolve this? I've tried changing the path parameters
> which doesn't make any difference.
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/ca2819ca-1930-4842-8ed8-0820f19ea343n%40googlegroups.com
> .
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/034bb3ea-e8a1-4e98-9d11-25ece25b6012n%40googlegroups.com.