Yes I think your correct Silviu. You want 'include' not 'import'. To explain:
Import is more like the C #include directive - it effectively just pulls the contents of the external file into the current one. Because you didn't have a file 'servername.pp' you got an error (as one would expect :-). Include is a bit more magical. It does the import (behind the scenes) of the file <modulepath>/manifests/init.pp and then calls the class found inside it. I'm simplifying but I figure you get the idea :-). ken. On May 18, 5:15 pm, Silviu Paragina <sil...@paragina.ro> wrote: > Odd, should of worked. > Try this (at this point I'm guessing) > Try removing the import "servername", it's optional in the latest > versions of puppet. > And make sure you have something along the line in nodes.pp > > node basenode { > include servername > > } > > Silviu > > On 18.05.2010 12:58, Chantal Rosmuller wrote: > > > > > > > Hi, > > > I changed puppet.conf and added: > > > modulepath=/etc/puppet/modules:/etc/puppet/clients > > > and restarted puppet > > > unfortunately the same error > > > Op dinsdag 18 mei 2010 11:36:54 schreef Silviu Paragina: > > >> On 18.05.2010 08:59, Chantal Rosmuller wrote: > > >>> in the clients directory there's a directory "servername" with > >>> subdirectories manifests and files > > >>> here's my clients/servername/manifests/init.pp: > > >> have you changed the puppet.conf so that it can use the modules from the > >> new location? Puppet does not load the modules by default from there... > >> It searches for them in /etc/puppet/modules (if i remember right, as I > >> don't use the default location) > > >>> err: Could not retrieve catalog: Could not parse for environment > >>> production: No file(s) found for import of 'servername' at > >>> /etc/puppet/manifests/clients.pp:1 > > >>> So what am I doing wrong here? > > >> Silviu > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.