When you include bar in class foo::bar it searches first in the foo class, so includes itself.
You should change it for: Include ::bar To include the just the class bar. Regards, El 03/09/2014 18:23, "scuwolf" <[email protected]> escribió: > what's happening when call 'include b' ? why it did not take effect? > > [root@master tmp]# cat test.pp > class foo::bar { > include bar > } > > class bar { > file { "/tmp/b": ensure => present } > } > > include foo::bar > [root@master tmp]# rm -f /tmp/b; puppet apply test.pp > Notice: Compiled catalog for master.163.internal in environment production > in 0.28 seconds > Notice: Finished catalog run in 0.03 seconds > [root@master tmp]# > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/0500757c-2c34-4e8f-89e1-ca86edc08578%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/0500757c-2c34-4e8f-89e1-ca86edc08578%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3ddmWV1G33Q8hK7uTXt6Fa-B3Y5OCti8d%2BEcFk%3DpN%2BphaQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
