On 23 Mrz., 12:16, Paul Tötterman <
paul.totter...@gmail.com> wrote:
> Hi Jay,
>
> > exec { 'ExecCreatedFolder':
> > command => "mkdir C:\PuppetOrdner\ExecCreatedFolder",
> > }
>
> mkdir is a command implemented by the windows command processor cmd.exe,
> not a callable program.
http://docs.puppetlabs.com/references/stable/type.html#execstates that the
> Windows provider can only call executables instead of giving commands to a
> shell.
>
> That said, have you tried something like 'command => "cmd /c mkdir
> c:\test"' ?
I tried it and it didn't work.. but I know what you mean.
It's OK
>
> Also, I hope you bring up mkdir purely for the sake of discussion, since
> file { 'C:/test': ensure => directory } works for creating directories.
Yes, It was just an example :-)
Just to try the ressource exec
>
> Cheers,
> Paul
Thx for your quick answer.