Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Centos 6.9, Puppet v5.3.3.
-
-
Modules
-
Needs Assessment
-
Needs Assessment
Description
Basic Info
Module Version:1.2.0
Puppet Version:5.3.3
OS Name/Version:Centos 6.9
Describe your issue in as much detail as possible...
Desired Behavior: To create a WebSphere instance using the example from the puppetforge home.
Actual Behavior: Error: Failed to apply catalog: no implicit conversion of nil into String
Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.
Following the Installation dependencies section of the readme I've set up the following script.
# == Class profile::websphere_base
|
#
|
# This profile is for installing WebSphere |
##
|
class profile::websphere_base { file { [ |
'/opt/log', |
'/opt/log/websphere', |
'/opt/log/websphere/appserverlogs', |
'/opt/log/websphere/applogs', |
'/opt/log/websphere/wasmgmtlogs', |
]:
|
ensure => 'directory', |
owner => 'webadmin', |
group => 'webadmins', |
}
|
|
class { 'websphere_application_server': |
user => 'webadmin', |
group => 'webadmins', |
base_dir => '/opt/IBM', |
}
|
|
websphere_application_server::instance { 'WebSphere85': |
target => '/opt/IBM/WebSphere/AppServer', |
package => 'com.ibm.websphere.ND.v85', |
version => '8.5.5000.20130514_1044', |
profile_base => '/opt/IBM/WebSphere/AppServer/profiles', |
repository => '/vagrant/provisioning/WASND_v8/repository.config', |
}
|
}
|
The installation has been unzipped at the repository location and the repository.config is readable.
Output from the puppet run:
[root@websphere-tri-d1 etc]# puppet apply --modulepath=/vagrant/modules -e "include profile::websphere_base" --trace |
|
Notice: Compiled catalog for websphere-tri-d1.wpsic.com in environment production in 0.50 seconds |
Error: Failed to apply catalog: no implicit conversion of nil into String
|
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:86:in `file?' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:86:in `find_installed_xml' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:94:in `installed_file' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:250:in `block in installed_packages' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:249:in `each' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:249:in `installed_packages' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:283:in `instances' |
/vagrant/modules/ibm_installation_manager/lib/puppet/provider/ibm_pkg/imcl.rb:226:in `prefetch' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:340:in `prefetch' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:241:in `prefetch_if_necessary' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:107:in `block in evaluate' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:119:in `traverse' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:169:in `evaluate' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:225:in `block in apply' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:140:in `as_logging_destination' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:224:in `apply' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:172:in `block in apply_catalog' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:224:in `block in benchmark' |
/opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:in `realtime' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `benchmark' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `apply_catalog' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:344:in `run_internal' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:222:in `block in run' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:263:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:196:in `run' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:356:in `apply_catalog' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block (2 levels) in main' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:263:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in `block in main' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:263:in `override' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in `main' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:in `run_command' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `block in run' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:666:in `exit_on_fail' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:358:in `run' |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132: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>' |
[root@websphere-tri-d1 etc]# |
I've been fighting with this for the past two days to no avail. The error is solidly in the websphere_application_server::instance defined type. If I comment it out I no longer have errors.