> I would reference from back from the sysconfig::permissions module to
> the ntp module file by specifying
> name => "/var/lib/ntp"
>
> Do I need to change all my modules because I used a feature of puppet
> which should not be there, and if so, how could I best fix this.
does a single manifests like
file{'foo':
name => '/tmp/foo',
mode => 0700;
}
with puppet apply, also raise an error?
~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk5zm6YACgkQbwltcAfKi3/k2QCfcG/LwcP+pebtbOA1vwFlOLwq
BoAAn1ukeUejmGFp4w4yCBk4No34xJhw
=pvok
-----END PGP SIGNATURE-----
> A single manifests works fine, but this is not the only module I have
> where I set permissions using the sysconfig::permissions module.
Ah, now I as I read your problem better: The error indicates more that
you name two resources with the same name/alias. And you can't and
shouldn't do that!
Actually your code should imho not work on 2.6.9 either and yes it looks
like 2.7 got more strict.
Anyway, you shouldn't do what you do currently, this is quite dangerous!
Note: Puppet automagically sets the execute flag on directories, so if
you'd like to have the directory 0750 and the files 0640, then simply
set the mode of the directory to 0640 and to recurse. If you would like
to set the files to 0600, then you have to manage them invidually,
because the file provider of puppet does (currently) not (yet) support
that feature.
> I can rewrite them, (and probably have to, to make it work again) but
> then it seems that the ' name' option in the file type is going to be
> obsoleted as it doesn't work anymore.
Unlikely, name is quite an important attribute for all resources. It is
more that you end up having two different resources with the same name
or alias. And that should really not be. It looks like a serious bug
_got_ fixed in 2.7
~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk50prIACgkQbwltcAfKi3+vjQCfboeXmfrBJzDS1/5NSsO8McDB
pwIAn2QOSWif3fZVkCEvLt/se5BoeoFL
=SOll
-----END PGP SIGNATURE-----