Ask Your Question

Access Windows File mapping

asked 2013-02-22 09:48:41 -0600

o.stumpf gravatar image

Hi, I am running puppet 3.0.1 client serverless on windows.

The manifests, modules and packages are stored on a network share that is mapped to a windows drive. I would like to apply the manifests locally. But it looks like there is no possibility to access these file.

When I try to access a mapped network share in the puppet console I get an error: z: The system cannot find the drive specified.

It is also impossible the use the mapped drive in the exec statement. Any idea how to fix this problem.

Regards, Oliver

edit retag flag offensive close merge delete

2 Answers

Sort by ┬╗ oldest newest most voted

answered 2013-06-03 17:53:34 -0600

joshc gravatar image

Paul T├Âtterman wrote a mapped_drive type & provider. For more information see

Also due to, be careful when mixing backslashes and single quotes. The following will fail:

command => 'net use z: \\\\server\\share'

Instead, use double quotes (and escape the backslashes):

command => "net use z: \\\\server\\share"

Or use single quotes and backslashes:

command => 'net use z: \\server\share'

Finally, puppet does support UNC paths for package sources, but not file sources, yet. We'd like to support this consistently across all resource types. See

edit flag offensive delete link more

answered 2013-03-02 21:54:54 -0600

louis gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-22 09:48:41 -0600

Seen: 2,531 times

Last updated: Jun 03 '13