Closed jsmelser closed 7 years ago
Hi @jsmelser
The key here I think is....
[puppetserver] Puppet Unknown variable: '::db2::workspace'.
That sounds like you have not included the db2 class itself. Try adding include db2
to that manifest before declaring the db2::install
type.....
Yup. :( I totally brain farted that one. Thanks
Getting this and assuming its because I need the universal install and not what I got.
Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/Archive[/var/puppet_db2/DB2_Svr_10.5.0.3_Linux_x86-64.tar.gz]/ensure) download archive from ftp://prvlopsrep01/DB2/v10/DB2_Svr_10.5.0.3_Linux_x86-64.tar.gz to /var/puppet_db2/DB2_Svr_10.5.0.3_Linux_x86-64.tar.gz and extracted in /var/puppet_db2 with cleanup Nov 30 09:49:11 prvlopsdb2t01 systemd[1]: Got notification message for unit systemd-journald.service Nov 30 09:49:11 prvlopsdb2t01 systemd[1]: systemd-journald.service: Got notification message from PID 573 (WATCHDOG=1) Nov 30 09:49:11 prvlopsdb2t01 systemd[1]: systemd-journald.service: got WATCHDOG=1 Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/File[/var/puppet_db2/10.5.rsp]/ensure) defined content as '{md5}3db9ae15cc7a9d7561c74769f785249f' Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: Could not find command '/var/puppet_db2/universal/db2setup' Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/Exec[db2::install::10.5]/returns) change from notrun to 0 failed: Could not find command '/var/puppet_db2/universal/db2setup' Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/File[/opt/ibm/server/db2/V10.5/license/custom_10.5.lic]) Dependency Exec[db2::install::10.5] has failures: true Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/File[/opt/ibm/server/db2/V10.5/license/custom_10.5.lic]) Skipping because of failed dependencies Nov 30 09:49:11 prvlopsdb2t01 puppet-agent[45909]: (/Stage[main]/Main/Db2::Install[10.5]/Exec[db2::install::license 10.5]) Dependency Exec[db2::install::10.5] has failures: true
But yeah, it looks like its working now just need to get the right tar ball.
YEah, I used installed_folder to point to what I needed and it all worked. Thanks for the help.
@jsmelser Glad its working - I added https://github.com/crayfishx/puppet-db2/commit/793ee5ce82fb24b61bfe89ec967afd6fdb650bd6 to helpfully make it clearer to anyone else coming across that.
Trying to set up db2 and getting an error. My Definition is:
Error below:
2016-11-28 11:11:55,061 WARN [qtp265994662-250318] [puppetserver] Puppet Unknown variable: '::db2::workspace'. at /etc/puppetlabs/code/environments/production/modules/db2/manifests/install.pp:11:24 2016-11-28 11:11:55,075 ERROR [qtp265994662-250318] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, nil is not an absolute path. at /etc/puppetlabs/code/environments/production/modules/db2/manifests/install.pp:69:3 at /etc/puppetlabs/code/environments/production/manifests/db2.pp:5 on node prvlopsdb2t01.trustamerica.com /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb:49:in
real_function_validate_absolute_path' org/jruby/RubyArray.java:1613:in
each' /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb:47:inreal_function_validate_absolute_path' org/jruby/RubyArray.java:1613:in
each' /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb:38:inreal_function_validate_absolute_path' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions.rb:174:in
function_validate_absolute_path' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/functions.rb:167:infunction_validate_absolute_path' /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/validate_absolute_path.rb:13:in
deprecation_gen' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatch.rb:45:ininvoke' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/functions/dispatcher.rb:35:in
dispatch' /etc/puppetlabs/code/environments/production/modules/stdlib/lib/puppet/functions/validate_absolute_path.rb:9:incall' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:272:in
call_function' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:271:incall_function' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:912:in
call_function_with_block' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:881:ineval_CallNamedFunctionExpression' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in
visit_this_1' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:inevaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:617:in
eval_BlockExpression' org/jruby/RubyArray.java:1613:ineach' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:617:in
eval_BlockExpression' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:invisit_this_1' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:77:in
evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:63:inevaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/pops_bridge.rb:32:in
evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast.rb:31:insafeevaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/type.rb:182:in
evaluate_code' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:84:inevaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/resource.rb:76:in
evaluate' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:591:inevaluate_definitions' org/jruby/RubyArray.java:1613:in
each' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:589:inevaluate_definitions' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:588:in
evaluate_definitions' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:64:inexceptwrap' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:587:in
evaluate_definitions' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:615:inevaluate_generators' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:612:in
evaluate_generators' org/jruby/RubyKernel.java:1511:inloop' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:609:in
evaluate_generators' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:192:incompile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:192:in
compile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:inoverride' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in
override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:167:incompile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:35:in
compile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:266:incompile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:264:in
compile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:inbenchmark' /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:295:in
realtime' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:inbenchmark' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:262:in
compile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:53:infind' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194:in
find' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:132:indo_find' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:48:in
call' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:inoverride' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:240:in
override' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/api/indirected_routes.rb:47:incall' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:82:in
process' org/jruby/RubyArray.java:1613:ineach' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:81:in
process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:inprocess' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/route.rb:87:in
process' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:60:inprocess' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in
profile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:inprofile' /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/http/handler.rb:58:in
process' file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppetserver-lib/puppet/server/master.rb:42:inhandleRequest' Puppet$$Server$$Master_156831259.gen:13:in
handleRequest' request_handler_core.clj:281:ininvoke' jruby_request.clj:47:in
invoke' jruby_request.clj:29:ininvoke' request_handler_service.clj:38:in
handle_request' request_handler.clj:3:ininvoke' request_handler.clj:3:in
invoke' core.clj:2493:ininvoke' ring_middleware.clj:281:in
invoke' core.clj:249:ininvoke' core.clj:294:in
invoke' core.clj:128:ininvoke' core.clj:134:in
invoke' ringutils.clj:86:ininvoke' master_core.clj:427:in
invoke' ring.clj:21:ininvoke' ring.clj:12:in
invoke' comidi.clj:249:ininvoke' http.clj:152:in
invoke' http.clj:152:ininvoke' http.clj:148:in
invoke' comidi.clj:336:ininvoke' jetty9_core.clj:424:in
invoke' normalized_uri_helpers.clj:80:in `invoke'