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

    Joel Wilson

    05/23/2022, 2:46 PM
    I’m assuming that removing a concat::fragment is all that is necessary for the removal of said fragment. That there doesn’t need to be any explicit
    ensure => absent
    ?
  • v

    vchepkov

    05/23/2022, 2:46 PM
    correct
  • j

    Joel Wilson

    05/23/2022, 2:47 PM
    Thx
  • c

    chadh

    05/23/2022, 5:23 PM
    anyone know if
    glob
    in
    hiera.yaml
    can merge data? so if I have the same in multiple files that are globbed together, will it merge, or will one of them “win”?
  • v

    vchepkov

    05/23/2022, 5:26 PM
    I think there is no difference between glob and multiple paths, same behavior applies
  • v

    vchepkov

    05/23/2022, 5:27 PM
    with
    first
    merging strategy, first on the list wins
  • b

    bastelfreak

    05/23/2022, 5:27 PM
    yes
  • b

    bastelfreak

    05/23/2022, 5:27 PM
    what @vchepkov says
  • c

    chadh

    05/23/2022, 5:43 PM
    k, that’s what I figured. Just like they were in the same file
  • c

    chadh

    05/23/2022, 5:44 PM
    hrm. Trying to split up a large hash into multiple files,, but probably not a simple way to do it
  • v

    vchepkov

    05/23/2022, 5:46 PM
    I don't think 'same file' is the right description
  • v

    vchepkov

    05/23/2022, 5:47 PM
    multiple files
  • v

    vchepkov

    05/23/2022, 5:47 PM
    multiple files
  • l

    Lumiere

    05/23/2022, 5:49 PM
    you can do lookup_options that work against globs
  • l

    Lumiere

    05/23/2022, 5:49 PM
    and do a merge: deep or merge:hash that will allow that to work
  • l

    Lumiere

    05/23/2022, 5:50 PM
    (merge:hash would let you define first level keys separately and merge everything below them iirc, deep is deep)
  • w

    woolfy

    05/23/2022, 8:34 PM
    Would like to manage just some segments of large yaml file with puppet epp. Is stdlib’s to_yaml of any help here?
  • v

    vchepkov

    05/23/2022, 8:38 PM
    concat is better, imho
  • v

    vchepkov

    05/23/2022, 8:39 PM
    have static components and epp as contact::fragment arranged into one concat file
  • v

    vchepkov

    05/23/2022, 8:39 PM
    have static components and epp as contact::fragment arranged into one concat file
  • v

    vchepkov

    05/23/2022, 8:39 PM
    but why not have the whole file as one epp?
  • v

    vchepkov

    05/23/2022, 8:40 PM
    but why not have the whole file as one epp?
  • w

    woolfy

    05/23/2022, 8:44 PM
    Currently entire file is managed as a dummy epp template. As the time goes by new segments we're added and it’s ready to be optimized with iteration and moving repeated patterns to hiera. It's not my code, currently not in position to make some big changes.
  • w

    woolfy

    05/23/2022, 8:46 PM
    Have static area that I’d rather not touch and parts that are changing. It’s just a section with single key and the value is array of hashes.
  • v

    vchepkov

    05/23/2022, 8:48 PM
    seems concat is a good choice
  • w

    woolfy

    05/23/2022, 8:50 PM
    Will try - ty @vchepkov
    👍 1
  • s

    Slackbot

    05/24/2022, 9:41 AM
    This message was deleted.
    r
    • 2
    • 2
  • b

    bastelfreak

    05/24/2022, 9:43 AM
    maybe the puppetserver 6 uses an intermediate certificate. I'm not sure if puppet 5 supports that
  • m

    matt

    05/24/2022, 9:44 AM
    ahhhhh that could be it
  • m

    matt

    05/24/2022, 9:45 AM
    oh, wait, puppetserver is the CA, let me check the config but I don't think it generates a intermediate CA by default
1...495051...428Latest