Created
March 13, 2015 16:19
-
-
Save johnduarte/4e8c20638764c081b009 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
# cat /tmp/puppetdb_manifest.pp.T6vbjj | |
class { 'puppetdb::server': | |
database => 'postgres', | |
puppetdb_version => '71646c6d05547147faf87a3382c6fac75a07f0cd-1.el7', | |
} | |
# get the pg server up and running | |
class { 'postgresql::globals': | |
manage_package_repo => true, | |
version => '9.3', | |
}-> | |
class { '::postgresql::server': | |
ip_mask_allow_all_users => '0.0.0.0/0', | |
listen_addresses => 'localhost', | |
} | |
# create the puppetdb database | |
postgresql::server::db { 'puppetdb': | |
user => 'puppetdb', | |
password => 'puppetdb', | |
grant => 'all', | |
} | |
[root@msn8xw2nc2rvzh8 ~]# puppet apply /tmp/puppetdb_manifest.pp.T6vbjj --trace | |
... | |
Error: /Stage[main]/Main/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Role[puppetdb]/Postgresql_psql[CREATE ROLE "puppetdb" ENCRYPTED PASSWORD 'pupp | |
etdb' LOGIN NOCREATEROLE NOCREATEDB NOSUPERUSER CONNECTION LIMIT -1]: Could not evaluate: undefined method `exitcode' for [" 0\n\n", #<Process::Status: | |
pid 30351 exit 0>]:Array | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/vendor/rgen/lib/rgen/array_extensions.rb:25:in `method_missing' | |
/etc/puppetlabs/code/environments/production/modules/postgresql/lib/puppet/type/postgresql_psql.rb:41:in `matches' | |
/etc/puppetlabs/code/environments/production/modules/postgresql/lib/puppet/type/postgresql_psql.rb:92:in `should_run_sql' | |
/etc/puppetlabs/code/environments/production/modules/postgresql/lib/puppet/type/postgresql_psql.rb:16:in `retrieve' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1053:in `block in retrieve' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1048:in `each' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1048:in `retrieve' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1071:in `retrieve_resource' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:241:in `from_resource' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:19:in `evaluate' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `call' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:284:in `block in thinmark' | |
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `block in apply' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:120:in `block in apply_catalog' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:129:in `block in benchmark' | |
/opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:128:in `benchmark' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:119:in `apply_catalog' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:225:in `run_internal' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:223:in `override' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:133:in `run' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:297:in `apply_catalog' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:231:in `block in main' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:64:in `override' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:223:in `override' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:193:in `main' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:154:in `run_command' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:438:in `exit_on_fail' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:124:in `run' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute' | |
/opt/puppetlabs/puppet/bin/puppet:5:in `<main>' | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you ever determine what the solution to this was, I'm running into something similar.