On 21 May 2011 01:22, Nigel Kersten <ni...@puppetlabs.com> wrote:

> On Thu, May 19, 2011 at 8:45 PM, John Warburton <jwarbur...@gmail.com>wrote:
>
>> Can anyone comment / expand upon
>> http://www.nico.schottelius.org/blog/puppet-sometimes-loads-a-class/
>>
>> % cat modules/dns_server/manifests/init.pp
>> import "*.pp"
>> include dns_server
>>
>
> You should avoid import in favor of include like this:
>
> # modules/dns_server/manifests/init.pp
> class dns_server {
>   # actual contents of your dns_server class.
> }
>
> and then your ENC or site.pp just does "include dns_server".
>
> That's what I did below - it seems to have cleaned up the weird behaviour


>
>> % ls -l modules/dns_server/manifests
>> total 56
>> -rw-r--r--   1 warbjoh  unxadmin   22296 Mar 15 18:38 dns_server.pp
>> -rw-r--r--   1 warbjoh  unxadmin     489 Mar 15 18:38 init.pp
>>
>> I have modified the module by renaming dns_server.pp to init.pp and hence
>> removing the "import *.pp"
>>
>>
I was hoping anyone could comment on
http://www.nico.schottelius.org/blog/puppet-sometimes-loads-a-class/

Thanks

John

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to