hello again :slightly_smiling_face: I'm fighting a...
# puppet
d
hello again 🙂 I'm fighting again with some crap code written in puppet 3 and I'm unable to get it to work on 7.
Copy code
code

  $application_version      = $::application::application_version
  $application_core_version = lookup("application::application_${application_version}_package_version", {'default_value' => '1.0.1.1-1101'})
  $application_libs_version = lookup("application::application_${application_version}_libs_package_version", {'default_value' => '1.0.1-1'})

yaml

application::application_version: '2.0.2.2'
application::application_2.0.2.2_package_version: 2.0.2.2-2222
application::application_2.0.2.2_libs_package_version: 2.0.2-2
The issue is that the lookup in hiera doesn't work and always gives me the default values for $application_core_version and $application_libs_version I've added a notify to check the variables for application_version and that returns the correct value. Any ideas??