grahamgilbert / vagrant-puppetmaster

Vagrant config for a testing setup with a Puppet Master, Puppet Dashboard and PuppetDB
Apache License 2.0
81 stars 69 forks source link

puppetdb installation fails #6

Closed biemond closed 10 years ago

biemond commented 10 years ago

Hi,

great work but somehow the puppetdb configuration fails, with this I get the following errors Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Could not retrieve facts for adminwls.example.com: Could not find terminus puppet for indirection facts

thanks

here the output of the puppetmaster configuration

Notice: /Stage[main]/Puppetdb::Server::Database_ini/Ini_setting[puppetdb_gc_interval]/ensure: created
Notice: /Stage[main]/Puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_username]/ensure: created
Notice: /Stage[main]/Puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_password]/ensure: created
Notice: /Stage[main]/Puppetdb::Server::Database_ini/Ini_setting[puppetdb_classname]/value: value changed 'org.hsqldb.jdbcDriver' to 'org.postgresql.Driver'
Notice: /Stage[main]/Puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_host]/ensure: created
Notice: /Stage[main]/Puppetdb::Server/Service[puppetdb]/enable: enable changed 'false' to 'true'
Notice: /Stage[main]/Puppetdb::Server/Service[puppetdb]: Triggered 'refresh' from 3 events

Notice: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppet/routes.yaml]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppetmasterstorebackend]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppetmasterstoreconfig]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[puppetdbport]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[puppetdbserver]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Config/Service[puppetmaster]: Dependency Puppetdb_conn_validator[puppetdb_conn] has failures: true
Notice: /Stage[main]/Puppetdb::Master::Config/Service[puppetmaster]: Triggered 'refresh' from 5 events
Notice: Finished catalog run in 323.77 seconds

Stderr from the command:

stdin: is not a tty
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Puppet::Util::SUIDManager.run_and_capture is deprecated; please use Puppet::Util::Execution.execute instead.
   (at /tmp/vagrant-puppet-1/modules-0/postgresql/lib/puppet/provider/postgresql_psql/ruby.rb:57:in `run_sql_command')
Error: /Stage[main]/Puppetdb::Master::Config/Puppetdb_conn_validator[puppetdb_conn]: Could not evaluate: Connection timed out - connect(2)
Warning: /Stage[main]/Puppetdb::Master::Routes/File[/etc/puppet/routes.yaml]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppetmasterstorebackend]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Storeconfigs/Ini_setting[puppetmasterstoreconfig]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[puppetdbport]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Puppetdb_conf/Ini_setting[puppetdbserver]: Skipping because of failed dependencies
Warning: /Stage[main]/Puppetdb::Master::Config/Service[puppetmaster]: Skipping because of failed dependencies
grahamgilbert commented 10 years ago

Alternate reloading the vm and provisioning it until there aren't any errors.

biemond commented 10 years ago

thanks an another provisioning solves everything