https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • c

    CVQuesty

    04/17/2023, 2:08 PM
    Read first then watch. The vid is 9 years old.
  • c

    CVQuesty

    04/17/2023, 2:08 PM
    Still relevant, but old.
  • d

    David Sandilands

    04/17/2023, 2:12 PM
    You can also see in https://www.puppet.com/docs/continuous-delivery/4.x/deployment_policies.html#deployment_policies the deployment policies CD4PE uses
  • t

    todd.seidenberg

    04/17/2023, 2:22 PM
    thank you
  • r

    RyChannel

    04/17/2023, 3:44 PM
    So we have a couple servers that don't seem to be running the pe_patch_fact_generation script automatically. I can see the script listed in crontab, any ideas?
  • c

    CVQuesty

    04/17/2023, 4:11 PM
    Can you manually run the script without issue?
  • d

    David Sandilands

    04/17/2023, 8:28 PM
    Q2 roadmap presentation https://www.puppet.com/resources/events/webinar/2023-puppet-enterprise-roadmap
    👍 4
  • d

    David Sandilands

    04/18/2023, 9:45 PM
    Puppet Integration Releases Splunk Splunk_hec 1.4.0 This module provides three services to Puppet and Splunk users. • A report processor to allow sending Puppet Agent run reports to Splunk • A fact terminus to submit node facts to Splunk • A PE Event Forwarding processor Key features/changes: Fixed • Event filtering for
    pe-console
    and
    code-manager
    events are no longer ignored Full changelog v1.3.0 to v1.4.0 Feedback https://github.com/puppetlabs/puppetlabs-splunk_hec/issues
    yay 2
  • s

    Slackbot

    04/19/2023, 2:16 PM
    This message was deleted.
    c
    b
    +3
    • 6
    • 27
  • z

    ziggy

    04/20/2023, 6:39 PM
    I know this sounds like a weird ask - but does anyone know how I would return only the integers in a hash such as
    5f4dcc3b5aa765d61d8327deb882cf99
    in Puppet code?
  • z

    ziggy

    04/20/2023, 6:40 PM
    so I only want 543576561832788299
  • v

    vchepkov

    04/20/2023, 6:41 PM
    Some variation of
    Copy code
    $x = regsubst($hash, /[^0-9]/, '', 'G')
  • z

    ziggy

    04/20/2023, 6:41 PM
    haha I knew it was something that simple. Ill give it a try. Thank you
  • v

    vchepkov

    04/20/2023, 6:44 PM
    Copy code
    $ puppet apply -e "notice(regsubst('5f4dcc3b5aa765d61d8327deb882cf99', /[^0-9]/, '', 'G'))"
    Notice: Scope(Class[main]): 543576561832788299
  • z

    ziggy

    04/20/2023, 6:47 PM
    wonderful! Thank you so much
    👍 1
  • t

    todd.seidenberg

    04/20/2023, 9:22 PM
    is there a way to override the environment of a particular node from the commandline, for a single run? I've tried to do
  • t

    todd.seidenberg

    04/20/2023, 9:22 PM
    Copy code
    puppet agent -t --environment=myenvironment
  • t

    todd.seidenberg

    04/20/2023, 9:23 PM
    and it restarts the run with the environment that to which I've classified the node in PE
  • t

    todd.seidenberg

    04/20/2023, 9:23 PM
    I'd like to test the code in other environments
  • s

    steveax

    04/20/2023, 9:30 PM
    this might be helpful: https://www.puppet.com/docs/pe/2021.7/environment_based_testing.html
  • t

    todd.seidenberg

    04/20/2023, 9:34 PM
    Ok - so I have to make changes in the web interface - there's no way at the command line of an agent to force it be overridden on a single run?
  • s

    steveax

    04/20/2023, 9:35 PM
    not without the classification additions I don’t think
  • t

    todd.seidenberg

    04/20/2023, 9:36 PM
    ok - but as I read it further - i can set the one-time run exception group up once in the gui, and then it should work if I specify a different environment at the command line, yes?
  • s

    steveax

    04/20/2023, 9:46 PM
    yes
  • t

    todd.seidenberg

    04/20/2023, 9:48 PM
    Ok - this does not seem to have any effect
  • t

    todd.seidenberg

    04/20/2023, 9:48 PM
    here's the config for me:
  • t

    todd.seidenberg

    04/20/2023, 9:49 PM
    My run looks like this:
  • t

    todd.seidenberg

    04/20/2023, 9:49 PM
    Copy code
    securootty@lnxrhpatchtestftden01. :~ # puppet agent -t --environment=testenv 
    Info: Using environment 'testenv'
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Loading facts
    Notice: Local environment: 'testenv' doesn't match server specified environment 'dev_puppet', restarting agent run with environment 'dev_puppet'
    Info: Retrieving pluginfacts
    Info: Retrieving plugin
    Info: Loading facts
    Info: Caching catalog for <http://lnxrhpatchtestftden01.pinnacol.com|lnxrhpatchtestftden01.pinnacol.com>
    Info: Applying configuration version '1682027264'
    Notice: Applied catalog in 3.91 seconds
    securootty@lnxrhpatchtestftden01. :~ #
  • b

    bastelfreak

    04/20/2023, 9:49 PM
    it's possible that you have another environment node group that assigns an env to the agent
1...454647...73Latest