2018-05-29 12:24 GMT+02:00 Ugo Bellavance <[email protected]>:
>
>
> On Tuesday, May 29, 2018 at 5:54:54 AM UTC-4, Arnau wrote:
>>
>> Hi,
>>
>> postgresql::server::contrib::package_name: 'rh-postgresql96-postgresql-
>> contrib'
>> postgresql::server::contrib::packages_ensure: present
>>
>>
> I don't get the error anymore. It's not doing what it's supposed but I'll
> look into it. I'll try the same thing with the manifest just to see.
>
What is it doing ?
What vesion of pupet/hiera? what version of the postgres module are you
using?
> But why do we have to use create_resources for the postgresql::server::db
> section but all the others are OK? Is it just because
> postgresql::server::db is an array?
>
*create_resources*
Converts a hash into a set of resources and adds them to the catalog.
This function takes two mandatory arguments: a resource type, and a hash
describing a set of resources. The hash should be in the form {title =>
{parameters} }:
*postgresql::server::db *is a *define*
*postgresql::server::contrib* is a *class*
In the first case you use create_resources cause you want to create
resources from the type postgresql::server::db (one or many). So the
create_resources function expects a hash with a list of databases + its
parameters.
The second case you want to pass values to a class parameters. The class
does not expect any has:
class postgresql::server::contrib (
String $package_name = $postgresql::params::contrib_package_name,
String[1] $package_ensure = 'present'
) inherits postgresql::params {
HTH,
arnau
>
> Thanks,
>
> --
> 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/d796f5ff-311a-46a0-b703-f12d7f1555b7%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d796f5ff-311a-46a0-b703-f12d7f1555b7%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/CAM69jx99Yr86-7OMpOUEdaKEqT2snh-XEne-EHzudTpmHH4Xuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.