PE 2015.2 and XL Deploy: Evaluation Error: Error while evaluating a Function Call, function 'defined' called with mis-matched arguments - shared_prereq.pp #82
I am using Puppet Enterprise 2015.2 and trying to install xl-deploy-5.1.0-server.
I get the following error:
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, function 'defined' called with mis-matched arguments
expected:
defined(Variant[String, Type[CatalogEntry], Type[Type[CatalogEntry]]] vals{1,}) - arg count {1,}
actual:
defined(Tuple[Type[Package['java-1.7.0-openjdk']]]) - arg count {1} at /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/shared_prereq.pp:21:15 on node puppetagent1.home
Warning: Not using cache on failed catalog
Puppet version has a different implementation of defined.
I had to add the symbol " between the parentheses.
The code is now:
if !defined("Package[$java_packages]") {
The code was:
if !defined(Package[$java_packages]) {
Maybe you need to go through all of the defined statements in the code since I am not testing all of the options at this moment. See below for the yaml that I use.
I am using Puppet Enterprise 2015.2 and trying to install xl-deploy-5.1.0-server.
I get the following error: Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, function 'defined' called with mis-matched arguments expected: defined(Variant[String, Type[CatalogEntry], Type[Type[CatalogEntry]]] vals{1,}) - arg count {1,} actual: defined(Tuple[Type[Package['java-1.7.0-openjdk']]]) - arg count {1} at /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/shared_prereq.pp:21:15 on node puppetagent1.home Warning: Not using cache on failed catalog
Puppet version has a different implementation of defined.
I had to add the symbol " between the parentheses.
The code is now: if !defined("Package[$java_packages]") {
The code was: if !defined(Package[$java_packages]) {
Maybe you need to go through all of the defined statements in the code since I am not testing all of the options at this moment. See below for the yaml that I use.
xldeploy::server::version: '5.1.0'
xldeploy::server::admin_password: 'xebia1' xldeploy::server::rest_user: 'admin' xldeploy::server::rest_password: 'xebia1'
xldeploy::server::install_type: 'puppetfiles' xldeploy::server::custom_download_server_url: 'puppet:///modules/xldeploy/sources/xl-deploy-5.1.0-server.zip' xldeploy::server::custom_download_cli_url: 'puppet:///modules/xldeploy/sources/xl-deploy-5.1.0-cli.zip'
xldeploy::server::install_license: true xldeploy::server::custom_license_source: 'puppet:///modules/xldeploy/license/deployit-license.lic'
xldeploy::server::manage_keys: false