-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/02/2010 06:35 PM, Douglas Garstang wrote:
> Apart from the obvious typo.
>
> Should be "include class_2". Still doesn't work though.
>
> Puppet class inheritance.... black art...
Works for me(TM):
$ cat foo.pp
class class_1 {
file {
"/tmp/foo":
ensure => directory;
}
}
class class_2 inherits class_1 {
}
include class_2
$ facter | grep puppetversion
puppetversion => 2.6.1
$ puppet foo.pp
notice: /Stage[main]/Class_1/File[/tmp/foo]/ensure: created
So imho you got something else wrong... If you are more verbose on what
puppet prints out etc. somebody might be able to help you.
~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzRHP0ACgkQbwltcAfKi38EYQCdEXgYNpPq6j8WKeuDmzx2qPuP
7nMAnRl2wWIGmltj/W3kxSDF5Y2YOncz
=Wsjs
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.