On Tue, Nov 29, 2011 at 06:05:20PM +0000, Russell Howe wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 29/11/11 14:06, jasper.hargrea...@m-w.co.uk wrote: > > Hi all, > > > > Recently upgraded one of our puppet servers from 2.6.4 to 2.7.5, and > > > > > > "puppet://puppet/modules/standalone-configs/$folder/$name-$type- > > $fqdn", > > Try > > > "puppet://puppet/modules/standalone-configs/${folder}/${name}-${type}-${fqdn}", > > See http://projects.puppetlabs.com/issues/10146 > > I don't know if that will fix your directories issue, but it can't hurt > and shouldn't break even if you downgrade I think.
That should fix the issue. If you specify ensure => file but the source is actually not a file but a directory puppet will not complain. It will create the directory. And because of the ticket Russell just quoted I suspect that "puppet://puppet/modules/standalone-configs/$folder/$name-$type-$default", will be interpolated like this "puppet://puppet/modules/standalone-configs/$folder/" and all other sources will just be garbage. So in the end puppet will pick a directory, not a file, as the source. -Stefan
pgpvkzwTwnpB3.pgp
Description: PGP signature