Question. Why doesn''t /tmp/foo get created? Doug. class class_1 { file { "/tmp/foo": ensure => directory; } } class class_2 inherits class_1 { } include class2 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apart from the obvious typo. Should be "include class_2". Still doesn''t work though. Puppet class inheritance.... black art... On Tue, Nov 2, 2010 at 10:34 AM, Douglas Garstang <doug.garstang@gmail.com>wrote:> Question. Why doesn''t /tmp/foo get created? > > Doug. > > > class class_1 { > file { > "/tmp/foo": > ensure => directory; > } > } > > class class_2 inherits class_1 { > } > > include class2 > > > >-- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garstang@gmail.com Cell: +1-805-340-5627 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Nov 2, 2010 at 10:35 AM, Douglas Garstang <doug.garstang@gmail.com> wrote:> Apart from the obvious typo. > Should be "include class_2". Still doesn''t work though. > Puppet class inheritance.... black art...What version of puppet are you running?> On Tue, Nov 2, 2010 at 10:34 AM, Douglas Garstang <doug.garstang@gmail.com> > wrote: >> >> Question. Why doesn''t /tmp/foo get created? >> Doug. >> >> class class_1 { >> file { >> "/tmp/foo": >> ensure => directory; >> } >> } >> class class_2 inherits class_1 { >> } >> include class2 >> >> > > > > -- > Regards, > > Douglas Garstang > http://www.linkedin.com/in/garstang > Email: doug.garstang@gmail.com > Cell: +1-805-340-5627 > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- Jeff McCune http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Nov 3, 3:27 am, Peter Meier <peter.me...@immerda.ch> wrote:> Works for me(TM):Works for me, too. I''m still on Puppet 0.24.8. What does the log say? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.