windows mount points

21 views
Skip to first unread message

Benjamin Priestman

unread,
Sep 1, 2014, 1:00:21 PM9/1/14
to puppet...@googlegroups.com
Hi,

On windows hosts, I've taken to putting all my app data in c:\srv, mimicing the /srv location on Linux. Depending on the host, this may be a location on the system drive, or it is sometimes an additional disk mounted at that location. In the latter case, `puppet resource file ` shows this as a link whose target is the underlying volume.

An attempt to define a file resource within this location fails with:
'Parent directory C:/srv does not exist'
If I create subdirectories here by hand, the puppet run proceeds just fine. Has anyone else come across this behavior?

I'm running puppet 3.4.2 at the moment. Happy to upgrade but I can't find any big reports that indicate this is a known issue.

Jim Ficarra

unread,
Sep 1, 2014, 2:59:52 PM9/1/14
to puppet...@googlegroups.com
Have you declared the folder before the file resource? Something like this:

file {'c:/srv':
ensure => 'directory',
}

file {'c:/srv/newfile':
ensure => 'file',
source => 'puppet:///modules/mymodule/myfile.txt',
require => File['c:/srv'],
}

It's not clear what the source of your file is so as part of the example I
arbitrarily specified it coming from the files folder from puppet. The key
take-away item is to declare the folder and ensure that the file resource(s)
are dependent on the folder being there regardless of your choice of
chaining and ordering syntax you choose, variables, et.

Hope that helps.

-Jim
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Ficarra

unread,
Sep 1, 2014, 3:01:24 PM9/1/14
to puppet...@googlegroups.com
whoops - disregard - I re-read and missed that the latter case was a linked
location.

Rob Reynolds

unread,
Sep 2, 2014, 2:38:31 PM9/2/14
to puppet...@googlegroups.com
We've had a similar issue when trying to copy files from non-NTFS volumes, but perhaps the underlying bug also affected file resources in those mounted folders. See PUP-1450[1] (also PUP-1368[2] and PUP-1389[3]) as it could have could have been linked to what you are seeing currently.

 

--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 20-24 in San Francisco
Register by September 8th to take advantage of the Final Countdown save $149!
Reply all
Reply to author
Forward
0 new messages