Skip to content

Instantly share code, notes, and snippets.

@frozenfoxx
Created October 23, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frozenfoxx/7123445 to your computer and use it in GitHub Desktop.
Save frozenfoxx/7123445 to your computer and use it in GitHub Desktop.
# PuppetDB
node "puppetdb.somecompany.local" inherits default {
class { 'hosts': hostClass => 'somewhere' }
include '::ntp'
class { 'sudo': sudoUsers => [someuser] }
class { 'puppetdb::database::postgresql':
listen_addresses => 'localhost',
}
class { 'puppetdb::server':
database_host => 'localhost',
database => 'postgres',
listen_address => '0.0.0.0',
}
}
@frozenfoxx
Copy link
Author

[root@puppetdb ~]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class ::postgresql::server at /etc/puppet/environments/production/modules/puppetdb/manifests/database/postgresql.pp:70 on node puppetdb.somecompany.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment