Created
October 23, 2013 17:57
-
-
Save frozenfoxx/7123445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[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