[Puppet Users] PuppetDB 2.2 and pg_trgm extension

2014-08-30 Thread Paul Seymour
Hello, Bumping my installation up to Postgres 9.3.5 and PuppetDB 2.2 I noticed in the release notes about the pg_trgm extension (hence the Postgres update) However on installing them and setting up the extension (seemingly correctly):- $ psql psql (9.3.5) Type help for help. postgres=# \dx

[Puppet Users] Re: PuppetDB 2.2 and pg_trgm extension

2014-08-30 Thread Paul Seymour
Ignore me didn't add the extension to the PuppetDB database. Added it to the puppetdb DB and hey presto:- 2014-08-30 08:40:27,935 INFO [c.p.p.s.migrate] Creating additional index `fact_paths_path_trgm` Too early in the morning for this sh.. Cheers Paul -- You received this message because

[Puppet Users] Hierarchy and Structured Facts

2014-08-30 Thread Poil
Hi, I've go a fact cfn_roles that is an array Is it possible to use it in hierarchy ? For exemple : * my fact : cfn_roles: - apache - mysql And my hierarchy |:hierarchy: - %{::roles}| hiera will try each entry of cfn_roles ? Best regards, -- You received this message because you are

Re: [Puppet Users] Re: Announce: Facter 2.2.0

2014-08-30 Thread Daniele Sluijters
Hi, I don't mind even changing that stuff in .Z releases but I think .Y is more appropriate indeed. Releasing a new major version of Facter every time a fact is bug fixed seems madness and not something you should get into. As long as the release notes are in order I think most people have

[Puppet Users] Style - hiera/params/puppet/template

2014-08-30 Thread Sirtaj Singh Kang
Greetings all, In the pre-hiera days, it was commonly recommended to write classes with params like this: class my_class::params { $config_param = 'default value' } class my_class ( $config_param = $myclass:params::config_param ) inherits myclass::params { ... } However, now

Re: [Puppet Users] Style - hiera/params/puppet/template

2014-08-30 Thread Poil
Hi, //I use params_lookup (lib from puppi) https://github.com/example42/puppi/blob/master/lib/puppet/parser/functions/params_lookup.rb it lookup in this order (first match is returned) - Hiera backend (if present) for modulename_varname - Hiera backend (if present) for varname (if second