(inline)

On Tue, Apr 25, 2017 at 07:52:19AM +0200, Angel L. Mateo wrote:
> Hello,
> 
>       I have this same configuration working without any problem.
> 
> El 24/04/17 a las 23:08, Christopher Wood escribió:
> >I am attempting to use the Puppet puppetdb and postgresql modules from the 
> >forge to have postgresql live on a separate server from puppetdb itself. 
> >It's not going brilliantly as I'm not understanding how to inform the 
> >postgresql module about what version of postgresql is in use for a 
> >versioncmp in postgresql::server::role.
> >
> >My questions to other people who have put postgresql on another host, or 
> >read puppet dsl better than me,  would be these:
> >
> >1) which classes and params did you declare in the profile to get over this 
> >hump?
> 
>       In my puppetdb server profile I have:
> 
> class profile::puppetdb::server {
> 
>   include ::puppetdb::globals
>   include ::puppetdb::server
>   ...

I facepalmed so hard at how I missed just declaring puppetdb::server directly. 
I got it working as you've shown, using puppetdb::server on the puppetdb node. 
I also had to declare puppetdb::database::postgresql on the postgresql node to 
ensure the database was there in the first place.

I tested an agent run with a scratch puppetserver node and I was able to do a 
successful agent run and then retrieve the node entry via 
http://localhost:8080/pdb/query/v4/nodes on the no-postgresql puppetdb node.

Thank you, very much appreciated!

> }
> 
>       I don't include any other puppetdb class.
> 
>       And my config (that I have on hiera) I have:
> puppetdb::server::listen_address: '0.0.0.0'
> puppetdb::server::listen_port: 8080
> puppetdb::server::disable_ssl: true
> puppetdb::server::database: postgres
> puppetdb::server::database_host: 'postgres.mydomain.com'
> puppetdb::server::database_username: 'puppetdb'
> puppetdb::server::database_name: 'puppetdb'
> puppetdb::server::database_password: 'mypassword'
> puppetdb::server::node_ttl: '15d'
> puppetdb::server::node_purge_ttl: '15d'
> puppetdb::server::java_args:
>   '-Xmx': '4g'
> 
>       I don't pass any other parameter to puppetdb classes
> 
> >2) am I able to get $connect_settings fed into postgresql::server::role 
> >somehow?
> >
>       I don't explicitly deal with postgresql::server::role at all, neither in
> puppetdb profile neither in postgresql server profile.
> 
> -- 
> Angel L. Mateo Martínez
> Sección de Telemática
> Área de Tecnologías de la Información
> y las Comunicaciones Aplicadas (ATICA)
> http://www.um.es/atica
> Tfo: 868889150
> Fax: 868888337
> 
> -- 
> 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/eefcaaa8-461f-9abd-2f19-f205fe603904%40um.es.
> 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/20170425205821.GA5492%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to