Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Satellite 6 and hiera call within puppet module

    Posted on

    Hi all,

    I am looking for a little clarification on the hiera calls. I am running Sat6 server v. 6.0.4 . I'm having simple custom made notify_me module imported into SAT6 with one single hiera call. Hiera is configured correctly on the server and by running test hiera call from command line I'm getting correct value.

    [root@rhns6]# hiera msg fqdn=node1.local
    Test string - HIERA NODE1

    I did all settings - Product( with puppet repo) Content view Live cycle and so on .... and finally I have one single module assigned to node1 without any smart parameters or variables.
    But when I run puppet agent on node1 I am still gettinng the default value from hiera call.

    class notify_me
    {
    $msg=hiera("msg"',"Default from class file")
    notify {"TEST CLASS : $msg":}
    }
    node1.local:
    ...
    info: Applying configuration version '1416339193'
    Notice: TEST CLASS : Default from class file

    So my question is : Is it supported scenario ? Can I use hiera calls in puppet modules with SAT6 working as a ENC ? Am I missing something important ?

    Thanks,
    Jan

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat