Also if any of that is unclear there is a doc on auto loading and
namespacing here:

https://docs.puppetlabs.com/puppet/latest/reference/lang_namespaces.html
On Sun, Aug 30, 2015 at 11:18 PM Rich Burroughs <r...@richburroughs.com>
wrote:

> The one in your example was:
>
> postgresql
>
> And yes that won't work because there's not an init.pp. There's actually
> not a class in the module called postgresql.
>
> You need to use the specific classes like:
>
> postgresql::client
> postgresql::server
>
> Whichever ones you need. There is a list of them on the Forge page.
>
> If that's not working I'm not sure why. Maybe you could paste in your new
> example and the error.
>
> On Sun, Aug 30, 2015 at 10:43 PM Alfredo De Luca <alfredo.del...@gmail.com>
> wrote:
>
>> Hi Rich.Thanks for that but when I try to do so I got that error
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Could not find class postgresql for puppet-sql.alflab.net on
>> node puppet-sql.alflab.net
>>
>> It seems it can't find the class at all even it's all there and that's
>> why I thought the init.pp would be why.
>> Alfredo
>>
>>
>> On Mon, Aug 31, 2015 at 3:02 PM, Rich Burroughs <r...@richburroughs.com>
>> wrote:
>> > A lot of modules do have one, but not all of them. It's not required,
>> it's a
>> > design decision.
>> >
>> > You should be able to add the classes you want to assign using the
>> proper
>> > scoping like:
>> >
>> > mysql::server
>> >
>> >
>> > Rich
>> > On Sun, Aug 30, 2015 at 9:12 PM Alfredo De Luca <
>> alfredo.del...@gmail.com>
>> > wrote:
>> >>
>> >> Hi all.
>> >> I found out that niether puppetlabs-postgresql or mysql has the
>> >> init.pp so that's why when I call them from hiera they fail.
>> >> Is it normal?
>> >>
>> >> Alfredo
>> >>
>> >>
>> >> On Sat, Aug 29, 2015 at 2:31 PM, Alfredo De Luca
>> >> <alfredo.del...@gmail.com> wrote:
>> >> > Hi all.
>> >> > Using Puppet open source  3.8  with hiera for test purpose.
>> >> >
>> >> > I installed puppetlabs-postgresql from forge but when on my puppet
>> >> > client yaml I use postgresql I got the following error:
>> >> >
>> >> >
>> >> > Error: Could not retrieve catalog from remote server: Error 400 on
>> >> > SERVER: Could not find class postgresql for puppet-sql.alflab.net on
>> >> > node puppet-sql.alflab.net
>> >> >
>> >> >
>> >> > Any clue why?
>> >> >
>> >> > Here is the yaml file
>> >> >
>> >> > ---
>> >> > classes:
>> >> >   - sudo
>> >> >   - selinux
>> >> >   - postgresql
>> >> >
>> >> > All the rest is working just fine. Also I tried puppetlabs-mysql but
>> >> > same error.
>> >> >
>> >> > Regards
>> >> >
>> >> > --
>> >> > Alfredo
>> >>
>> >>
>> >>
>> >> --
>> >> Alfredo
>> >>
>> >> --
>> >> 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 puppet-users+unsubscr...@googlegroups.com.
>> >> To view this discussion on the web visit
>> >>
>> https://groups.google.com/d/msgid/puppet-users/CAAWpFTFioMKsLcNDKtKtG8o5Fo7X7Z-kBzqCWsp2VasRGNZBLQ%40mail.gmail.com
>> .
>> >> 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 puppet-users+unsubscr...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/puppet-users/CAPGcbtCceoq9ks%2Brvux7_x%3DFj6GUZLTvRr7jftXW8RstFcerGg%40mail.gmail.com
>> .
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Alfredo
>>
>> --
>> 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 puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/CAAWpFTEcHYL%2BTa3VYmeE7QNyKeMEch%3Db0Epotx_VEAiigTqnGg%40mail.gmail.com
>> .
>> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAPGcbtDTfw_Lq1%3DfoS3R7oCCtT5-X6%3D_gs2QbSROWwEZvE-r1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to