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

    Slackbot

    07/19/2022, 2:13 PM
    This message was deleted.
    b
    j
    • 3
    • 3
  • j

    Jonathan Albrecht

    07/19/2022, 2:14 PM
    Hi Team, I'm looking at the supported OSs for Puppet Server 7 (https://puppet.com/docs/puppet/7/server/install_from_packages.html#supported-operating-systems) and I see that SLES15 is not listed. There seem to be server packages available at yum.puppet.com for those platforms. Is the list out of date or is SLES15 not officially supported yet?
  • s

    Slackbot

    07/19/2022, 3:20 PM
    This message was deleted.
    s
    • 2
    • 1
  • s

    Slackbot

    07/19/2022, 3:22 PM
    This message was deleted.
    g
    • 2
    • 1
  • l

    Lumiere

    07/19/2022, 3:26 PM
    the other option would be using hiera with deep merge
  • r

    ramindk

    07/19/2022, 3:30 PM
    In regards to templating it depends. 😁 Couple of things to consider • In some cases it's really nice to go through the system and delete some_file.txt.rhel6 when you retire that OS. I've often optimized for this in systems that have a lot of static files. Also sometimes it's easier to bring less cruft along when you force a new file creation for the new OS. • Push it all into data as Lumeire suggests above. It's a very clean implementation, but sometimes too magical for general troubleshooting. I'd certainly use it if this is more of a set and forget sort of case. • concat is really nice and also easy to see in logs, catalog reports, etc. I'd lean towards this option as a starting point. • if os == 8 is also a fine starting point too. No need to overthink it until the complexity actually shows up.
  • r

    ramindk

    07/19/2022, 3:31 PM
    In regards to templating it depends. 😁 Couple of things to consider • In some cases it's really nice to go through the system and delete some_file.txt.rhel6 when you retire that OS. I've often optimized for this in systems that have a lot of static files. Also sometimes it's easier to bring less cruft along when you force a new file creation for the new OS. • Push it all into data as Lumeire suggests above. It's a very clean implementation, but sometimes too magical for general troubleshooting. I'd certainly use it if this is more of a set and forget sort of case. • concat is really nice and also easy to see in logs, catalog reports, etc. I'd lean towards this option as a starting point. • if os == 8 is also a fine starting point too. No need to overthink it until the complexity actually shows up.
  • b

    Brian Schonecker

    07/19/2022, 3:33 PM
    I think the template + concat might be the way to go. I need to keep the comments and stuff in the file so the deep merge might be too magical. šŸ˜‰ If the Apache folks rely on template/concat, then I think that might be my best course. Thanks!
  • n

    natemccurdy

    07/19/2022, 4:18 PM
    Note that you can’t use a
    file
    resource +
    concat_fragment
    to manage the same file though. So I just want to clarify that ā€œtemplate + concatā€ works as long as you don’t do
    file
    +
    concat_fragment
    . It’ll need to be
    concat
    +
    concat_fragment
    (for the main part of the file) +
    concat_fragment
    (for the rhel8 part)
  • d

    Dr Bunsen Honeydew

    07/19/2022, 4:45 PM
    waiting šŸ§‘ā€šŸ«Puppet Core Team is about to start up in #CFD8Z9A4T
  • b

    Brian Schonecker

    07/19/2022, 5:36 PM
    Yes, I misspoke. It's the concat plus concat::fragment that I need to use. I've never used concat from scratch before. concat::fragment does accept "content => template("path/to/template")" and that was my confusion.
  • b

    Brian Schonecker

    07/19/2022, 5:36 PM
    Thanks for clarifying that for me.
  • n

    natemccurdy

    07/19/2022, 5:41 PM
    Cool, and yup, sounds like you’ve got the right idea.
    concat
    + `concat::fragment`’s
  • n

    natemccurdy

    07/19/2022, 5:41 PM
    Though I do recommend using EPP templates instead of ERB.
    Copy code
    content => epp('path/to/template.epp', $context),
  • n

    natemccurdy

    07/19/2022, 5:41 PM
    Though I do recommend using EPP templates instead of ERB.
    Copy code
    content => epp('path/to/template.epp', $epp_context),
  • n

    natemccurdy

    07/19/2022, 5:42 PM
    Though I do recommend using EPP templates instead of ERB.
    Copy code
    content => epp('path/to/template.epp', $context),
  • b

    Brian Schonecker

    07/19/2022, 5:46 PM
    Oh, geeze....more stuff I have to learn after being out of the puppet scene for four years.
  • b

    Brian Schonecker

    07/19/2022, 5:46 PM
    šŸ˜‰
  • b

    Brian Schonecker

    07/19/2022, 5:47 PM
    I think I'm going to ask for forgiveness for using erb templates as I've got a deadline to meet.
    šŸ» 1
  • r

    runlolarun

    07/19/2022, 6:24 PM
    message has been deleted
  • s

    Slackbot

    07/19/2022, 7:07 PM
    This message was deleted.
    n
    h
    • 3
    • 2
  • h

    hbui

    07/19/2022, 7:44 PM
    Is there a document that describes what is happening at each of these levels (i.e. what is happening during "Node retrieval" or "Config retrieval")?
    Untitled.txt
  • h

    hbui

    07/19/2022, 7:46 PM
    https://tickets.puppetlabs.com/browse/PUP-10531 suggests to me, the answer is no
  • h

    hbui

    07/19/2022, 7:47 PM
    I guess my question: what is happening during "Node retrieval" and "Config retrieval"?
  • n

    natemccurdy

    07/19/2022, 7:50 PM
    • ā€œNode retrievalā€: How long it takes to find the agent’s
    Node
    object. Literally, how long the
    GET /puppet/v3/node/<certname>
    HTTP request takes. This usually translates into how long your ENC takes to run + the HTTP overhead of sending it. • ā€œConfig retrievalā€: How long it takes to get the node’s
    Catalog
    . Literally, how long the
    POST /puppet/v3/catalog/<certname>
    HTTP request takes. This is the time it takes to compile a catalog + the HTTP overhead of sending it.
  • n

    natemccurdy

    07/19/2022, 7:51 PM
    398 seconds for Node Retrieval is incredibly slow.
    āž• 1
    facepalm 1
  • h

    hbui

    07/19/2022, 7:51 PM
    šŸ™‚ hence my question
  • h

    hbui

    07/19/2022, 7:52 PM
    so this points to the server being bogged down and either spending time in iowait or something else?
  • n

    natemccurdy

    07/19/2022, 7:52 PM
    Specifically, this points to the ENC being slow. Not necessarily ā€œthe serverā€. What do you use for your ENC?
  • h

    hbui

    07/19/2022, 7:52 PM
    (also thank you for the answer)
1...99100101...428Latest