https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • a

    Allahshukur Ahmadzada

    07/29/2022, 12:59 PM
    @bastelfreak ++
  • d

    Dr Bunsen Honeydew

    07/29/2022, 12:59 PM
    bastelfreak +1! (Karma: 21)
  • l

    Lumiere

    07/29/2022, 1:30 PM
    ubuntu ships what debian does for puppet
  • l

    Lumiere

    07/29/2022, 1:31 PM
    and debian has been shipping 5 for a long time
  • t

    tuxmea

    07/29/2022, 2:32 PM
    disabling auth is wip. issue no 45 i assume.
  • s

    Slackbot

    07/29/2022, 5:17 PM
    This message was deleted.
    👀 1
    b
    h
    n
    • 4
    • 5
  • b

    bastelfreak

    07/29/2022, 5:28 PM
    https://github.com/petems/petems-hiera_vault
  • s

    Slackbot

    07/31/2022, 1:12 AM
    This message was deleted.
    y
    t
    • 3
    • 2
  • s

    Slackbot

    07/31/2022, 11:20 AM
    This message was deleted.
    f
    • 2
    • 1
  • s

    Slackbot

    08/01/2022, 8:22 AM
    This message was deleted.
    b
    a
    d
    • 4
    • 5
  • m

    matt

    08/01/2022, 6:04 PM
    really stupid question, I want to test a lookup for a node defined in hiera, if I do a puppet lookup prometheus:bind exporterextra_options --node test.domain.com --environment production that should return the value of the extra_options from the bind_exporter class in the prometheus module right ?
  • m

    matt

    08/01/2022, 6:04 PM
    (assuming there is a definition for test.domain.com as a node)
  • v

    vchepkov

    08/01/2022, 6:05 PM
    not exactly, puppet lookup knows nothing about
    class
    , only hiera
  • v

    vchepkov

    08/01/2022, 6:06 PM
    so if parameters passed directly, say in a profile, to a class, lookup won't be aware
  • m

    matt

    08/01/2022, 6:06 PM
    but if it's defined in hiera it should ?
  • v

    vchepkov

    08/01/2022, 6:06 PM
    yes
  • m

    matt

    08/01/2022, 6:06 PM
    arse, my hiera definition is off as it's returning nothing
  • m

    matt

    08/01/2022, 6:06 PM
    thank you
  • v

    vchepkov

    08/01/2022, 6:06 PM
    you can add
    --explain
    to command
  • v

    vchepkov

    08/01/2022, 6:07 PM
    it will show where it looks, see if it matches your expectations
  • m

    matt

    08/01/2022, 6:08 PM
    interesting, it does search the right file, but doesn't explain as I expected, "No such key: "lookup_options""
  • m

    matt

    08/01/2022, 6:09 PM
    why would it think that is the key
  • m

    matt

    08/01/2022, 6:09 PM
    the key is prometheus:bind exporterextra_options
  • n

    natemccurdy

    08/01/2022, 6:11 PM
    Hiera always looks for a key called
    lookup_options
    first because that defines options that might affect the lookup and resolution of a given key. https://puppet.com/docs/puppet/7/hiera_merging.html#setting_lookup_options_to_refine_the_result_of_a_lookup-lookup-options-format
  • n

    natemccurdy

    08/01/2022, 6:11 PM
    Hiera always looks for a key called
    lookup_options
    first because that defines options that might affect the lookup and resolution of a given key. https://puppet.com/docs/puppet/7/hiera_merging.html#setting_lookup_options_to_refine_the_result_of_a_lookup-lookup-options-format
  • m

    matt

    08/01/2022, 6:12 PM
    ahh so it's fine that it doesn't find that then if I've not setup specific lookup options
  • n

    natemccurdy

    08/01/2022, 6:13 PM
    Correct.
  • m

    matt

    08/01/2022, 6:15 PM
    got to be something wrong with how I've defined the param in hiera then as it's looking in the right places, the node.yaml file is there - and contains the param, I've got to have defined it wrong so that it's invalid
  • g

    Graeme Donaldson

    08/01/2022, 6:22 PM
    prometheus::bind_exporter:extra_options
    seems to be missing a second ':' before 'extra'
  • m

    matt

    08/01/2022, 6:23 PM
    there is something wrong with my setup - I'm doing a puppet lookup on a key that I know exists and is working, and the puppet run is reading it from hiera and setting it correctly, when I look it up as a test it fails
1...115116117...428Latest