Jira (HI-613) Invalid relationship: Package[kibana] { require => Yumrepo['MISCELLANEOUS'] }, because Yumrepo['MISCELLANEOUS'] doesn't seem to be in the catalog

3 views
Skip to first unread message

Kunal Mehta (JIRA)

unread,
Jun 5, 2019, 11:27:03 AM6/5/19
to puppe...@googlegroups.com
Kunal Mehta created an issue
 
Hiera / Bug HI-613
Invalid relationship: Package[kibana] { require => Yumrepo['MISCELLANEOUS'] }, because Yumrepo['MISCELLANEOUS'] doesn't seem to be in the catalog
Issue Type: Bug Bug
Assignee: Andre Keller
Created: 2019/06/05 8:26 AM
Priority: Critical Critical
Reporter: Kunal Mehta

*********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'] }
  1. 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.

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages