| *********Hiera Data definition for package******** profile::devops::kibana::install::package: 'kibana': ensure: latest require: Yumrepo['MISCELLANEOUS'] -------------------------------------------------------------------------------------------------- *************Class definition for Package installation******************** class profile::devops::kibana::install ( $config = undef, ) { # Set the global execution path. Exec \{ path => ['/sbin', '/bin', '/usr/sbin', '/usr/bin'] }
- Install specified packages.
$defaults = { ensure => 'installed', } if $config { #notify \{ "@1: >>>> $config <<<": } create_resources(package, $config, $defaults) } else { $hiera_config = hiera_hash('profile::devops::kibana::install::package', undef) #notify \{ "@2: >>>> $hiera_config <<<": } if $hiera_config { create_resources(package, $hiera_config, $defaults) } } }
---------------------------------------------------------------------------------------------------------------- if i am using ensure: latest it is installing default package from yum , if i am mentioning required repo for package to install package it is throwing the error mentioned in summary. Please suggest some workaround. |