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
-----Original Message-----
From: Benjamin Priestman
Sent: Monday, September 01, 2014 1:00 PM
To: puppet-users@googlegroups.com
Subject: [Puppet Users] windows mount points
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.
--
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+unsubscr...@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.
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/7D69BADFB2484A869FA9439E60A6A256%40JimHPPavilionG6.
For more options, visit https://groups.google.com/d/optout.