# configure the puppetdb api service class profiles::puppet::puppetdb_api ( String $postgres_host = lookup('profiles::puppet::puppetdb::postgres_host'), String $listen_address = $facts['networking']['ip'], ) { class { 'puppetdb::server': database_host => $postgres_host, manage_firewall => false, ssl_listen_address => $listen_address, listen_address => $listen_address, } contain ::puppetdb::server }