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

    bastelfreak

    04/21/2022, 2:02 PM
    Copy code
    curl -i --cert $(puppet config print hostcert) \
    --key $(puppet config print hostprivkey) \
    --cacert $(puppet config print cacert) \
    -X DELETE \
    https://$(puppet config print server):8140/puppet-admin-api/v1/environment-cache?environment=production
  • l

    Lumiere

    04/21/2022, 2:03 PM
    @bastelfreak now how do I do that if I use srv_domain 😄
  • b

    bastelfreak

    04/21/2022, 2:04 PM
    doesn't matter since your normal cert has no permissions on that endpoint anyway 😛
  • b

    bastelfreak

    04/21/2022, 2:04 PM
    you write a plan that does that locally on every puppetserver
  • b

    bastelfreak

    04/21/2022, 2:04 PM
    (and afterwards you share it here)
  • b

    bastelfreak

    04/21/2022, 2:05 PM
    and I still think that Puppet/Perforce should make sharing/finding tasks/plans easier
  • l

    Lumiere

    04/21/2022, 2:06 PM
    so localhost 😄
  • b

    bastelfreak

    04/21/2022, 2:07 PM
    I always do that on localhost but if I use localhost in the url, that usually fails because it's not listed in the certificate
  • v

    vchepkov

    04/21/2022, 2:09 PM
    there is always
    --insecure
    🙂
  • b

    bastelfreak

    04/21/2022, 2:10 PM
    every time someone uses that a tiny kitten cries
    💯 1
  • l

    Lumiere

    04/21/2022, 2:11 PM
    ah... `https://$(hostname -f) --resolve '$(hostname -f)8140127.0.0.1'`(curl 7.27.0+)
  • b

    bastelfreak

    04/21/2022, 2:11 PM
    ah yes, that's smarter
  • l

    Lumiere

    04/21/2022, 2:11 PM
    ah... `https://$(hostname -f) --resolve '$(hostname -f)8140127.0.0.1'`(curl 7.27.0+)
  • b

    bastelfreak

    04/21/2022, 2:12 PM
    updates his slides
  • b

    bastelfreak

    04/21/2022, 2:12 PM
    @Lumiere ++
  • d

    Dr Bunsen Honeydew

    04/21/2022, 2:12 PM
    jason.straw leveled up! (Karma: 4)
  • l

    Lumiere

    04/21/2022, 2:12 PM
    @bastelfreak ++ for the entire idea
  • d

    Dr Bunsen Honeydew

    04/21/2022, 2:12 PM
    bastelfreak +1! (Karma: 14)
  • b

    bastelfreak

    04/21/2022, 2:12 PM
    for more ideas checkout https://bastelfreak.de/scalingpuppetserver/#1
  • r

    romgo

    04/21/2022, 2:37 PM
    @Lumiere rolling back to 5.1.0 of choclatey seems working thanks a lot
  • l

    Lumiere

    04/21/2022, 2:38 PM
    cool, looking at the code, that's where they introduced the &. syntax sugar in ruby which I assume is a higher version of ruby then puppet 5.3 on debian has available to it
  • l

    Lumiere

    04/21/2022, 2:39 PM
    I would recommend using puppet upstream puppet (5 minimally, but a 7 upgrade shouldn't be too painful from there, and gets you into a non-EOL software state)
  • s

    Slackbot

    04/21/2022, 3:03 PM
    This message was deleted.
    t
    r
    • 3
    • 3
  • l

    Lumiere

    04/21/2022, 3:12 PM
    generally worst case scenario of an upgrade on the agent is that the agent fails to run
    👍 1
  • a

    Allahshukur Ahmadzada

    04/21/2022, 3:29 PM
    Hello, I am trying to write my first module and follow best practices. Can you recommend a module which I can reference? I wonder if params.pp is a best practice or not, can I use just hiera+lookups (use facts and has different yaml files for different os) and avoid params.pp + inhertits from params.pp?
  • a

    Allahshukur Ahmadzada

    04/21/2022, 3:31 PM
    Hello, I am trying to write my first module and follow best practices. Can you recommend a module which I can reference? I wonder if params.pp is a best practice or not, can I use just hiera+lookups (use facts and has different yaml files for different os) and avoid params.pp + inhertits from params.pp?
  • a

    Allahshukur Ahmadzada

    04/21/2022, 3:31 PM
    message has been deleted
  • l

    Lumiere

    04/21/2022, 3:42 PM
    params.pp is no longer a best practice, hiera automatic parameter lookup is
  • l

    Lumiere

    04/21/2022, 3:43 PM
    I'd look into PDK as a starting point
  • t

    tuxmea

    04/21/2022, 3:44 PM
    You can add these modules also on a puppet 5 installation
1...456...428Latest