Puppetdb module help

asked 2018-09-10 16:50:53 -0600

updated 2018-09-10 19:00:13 -0600

binford2k gravatar image

I am creating a 3 node puppet 4 setup. I Have the puppetmaster, puppetdb, and postgres db server. All are ec2 instances in AWS. I am using the manifest below to setup puppetdb

$puppetdb_host = 'l03y09pdbwa0001.ec2.internal'  
$postgres_host = 'l03y09ppdwa0001.ec2.internal'  
node 'l03y09pptwa0001.ec2.internal' {  
  # Here we configure the Puppet master to use PuppetDB,  
  # telling it the hostname of the PuppetDB node  
  class { 'puppetdb::master::config':  
    puppetdb_server => $puppetdb_host,  
  }    
}  
node 'l03y09ppdwa0001.ec2.internal' {  
  # Here we install and configure PostgreSQL and the PuppetDB  
  # database instance, and tell PostgreSQL that it should  
  # listen for connections to the `$postgres_host`  
  class { 'puppetdb::database::postgresql':  
    listen_addresses => $postgres_host,  
  }  
}  
node 'l03y09pdbwa0001.ec2.internal' {  
  # Here we install and configure PuppetDB, and tell it where to  
  # find the PostgreSQL database.    

  class { 'puppetdb::server':  
    database_host => $postgres_host,  
    listen_address => "${facts['networking']['hostname']}.ec2.internal",  
    open_listen_port => true,  
    open_ssl_listen_port => true,  
  }  
}

It runs with no errors with the puppet agent -t on the postgress and puppetdb( went in order postgres ec2, puppetdb, then puppet master). When I run puppet agent -t on the puppet master I get an error

Notice: Unable to connect to puppetdb server (https://l03y09pdbwa0001.ec2.internal:8081): [503] Service Unavailable

If I try and hit the puppet db ip with the port 8080 I get an error:

HTTP ERROR: 404  
Problem accessing /. Reason:  
    Not Found  
Powered by Jetty://
edit retag flag offensive close merge delete