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 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.

Reply via email to