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

    matt

    03/21/2023, 7:25 PM
    you need to be able to quote within the hash as some values will be a string
  • v

    vchepkov

    03/21/2023, 7:25 PM
    hmm
  • m

    matt

    03/21/2023, 7:25 PM
    just changed it to true to test
  • v

    vchepkov

    03/21/2023, 7:25 PM
    do on the server
    Copy code
    puppet lookup postfix::configs
  • m

    matt

    03/21/2023, 7:25 PM
    Evaluation Error: Expected value of type Hash, got Boolean
  • m

    matt

    03/21/2023, 7:26 PM
    --- smtp_use_tls: true
  • v

    vchepkov

    03/21/2023, 7:26 PM
    let me read code again πŸ™‚
  • m

    matt

    03/21/2023, 7:26 PM
    lookup is working
  • m

    matt

    03/21/2023, 7:27 PM
    thank you,
  • v

    vchepkov

    03/21/2023, 7:28 PM
    oh, well, that loop is very simple You might need to do more complicated version of hiera try this
    Copy code
    postfix::configs:
     smtp_use_tls:
       value: 'yes'
  • m

    matt

    03/21/2023, 7:29 PM
    I was just looking at the example at the top of config.pp where you can pass in multiple values for a key, eg: ensure present, as well as the value for the location
  • m

    matt

    03/21/2023, 7:29 PM
    wasn't sure how that was going to work in hiera but your example explains that
  • m

    matt

    03/21/2023, 7:29 PM
    let me test, thank you
  • v

    vchepkov

    03/21/2023, 7:30 PM
    imho, that code can be simplified, it's overbearing πŸ™‚
  • s

    Slackbot

    03/21/2023, 7:31 PM
    This message was deleted.
    v
    • 2
    • 1
  • m

    matt

    03/21/2023, 7:31 PM
    thank you for taking the time to look and explain that for me
    πŸ‘ 1
  • v

    VoxBot

    03/21/2023, 11:22 PM
    vchepkov: that's so true in my experience
  • s

    Slackbot

    03/22/2023, 7:05 AM
    This message was deleted.
    b
    a
    • 3
    • 2
  • t

    towo

    03/22/2023, 8:19 AM
    That's just the old YAML spec, sadly. They only backtracked from this with the most recent spec.
  • t

    towo

    03/22/2023, 8:19 AM
    Thus, kids: always quote your strings!
  • b

    bastelfreak

    03/22/2023, 8:22 AM
    or: Puppet Devs: Update to a newer yaml spec!
  • v

    VoxBot

    03/22/2023, 8:25 AM
    πŸ‡³πŸ‡΄ πŸ‡³πŸ‡΄ πŸ‡³πŸ‡΄
    πŸ‘πŸ» 1
    πŸ˜‚ 2
  • v

    VoxBot

    03/22/2023, 8:25 AM
    mhh, that looks wrong
  • t

    towo

    03/22/2023, 8:40 AM
    No no, no no no, no no limits limits…
  • b

    binford2k

    03/22/2023, 6:37 PM
    https://fosstodon.org/@puppet/110068381266505184
  • v

    VoxBot

    03/22/2023, 9:32 PM
    without looking: I guess that's the hexasigmal notation that parses mac addresses as numbers
  • v

    VoxBot

    03/22/2023, 9:32 PM
    oh yes it is :)
  • v

    VoxBot

    03/22/2023, 9:41 PM
    that was a good one
  • b

    binford2k

    03/23/2023, 2:46 AM
    https://fosstodon.org/@puppet/110070283173182516
    voxpupuli 1
    πŸ‘ 1
  • r

    Robert Waffen

    03/23/2023, 9:18 AM
    thx for the pmc election. πŸ™‚
1...377378379...648Latest