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

    natemccurdy

    11/10/2022, 6:50 PM
    ….Yeah, now I’m not sure. I suspect the docs are wrong, because I’ve never seen that “runs at most 2 times” behavior in action.
  • c

    Corey Hickey

    11/10/2022, 6:51 PM
    It doesn't seem like that would be desirable behavior anyway.
  • s

    Slackbot

    11/10/2022, 6:52 PM
    This message was deleted.
    n
    c
    • 3
    • 9
  • c

    Corey Hickey

    11/10/2022, 6:52 PM
    Thanks for your response.
  • n

    natemccurdy

    11/10/2022, 7:00 PM
    If the exec has already run and then receives an event, it runs its command up to two times.
    That should say something like:
    If the exec has already run and then receives an event, it runs only one more time after all the refresh events have been sent. It runs at most two times in this condition: once for the original evaluation, once for all the refresh events.
  • c

    Corey Hickey

    11/10/2022, 7:39 PM
    This makes more sense now that I understand the implementation.
    refreshonly
    is implemented as a test that always fails; this inhibits the normal execution: https://github.com/puppetlabs/puppet/blob/2990e9c/lib/puppet/type/exec.rb#L407 Refresh events are handled a a separate path to run the command: https://github.com/puppetlabs/puppet/blob/2990e9c/lib/puppet/type/exec.rb#L672 I had always expected that the resource would "know" whether it is being refreshed or not, and conditionally inhibit the normal execution based on
    refreshonly
    and whether any refresh events had been received.
  • s

    Slackbot

    11/10/2022, 8:38 PM
    This message was deleted.
    b
    s
    +2
    • 5
    • 14
  • p

    Pedro

    11/10/2022, 11:25 PM
    Hello guys! I have this assignment to present which is finding a public github of any project of a company that was enhanced with Puppet and try to explain how it helped them. Any git projects that comes to your mind? Thank you!
  • n

    natemccurdy

    11/10/2022, 11:28 PM
    Wikimedia: https://github.com/wikimedia/puppet
    🙌 3
    ✅ 1
  • n

    natemccurdy

    11/10/2022, 11:28 PM
    Wikimedia: https://github.com/wikimedia/puppet
  • p

    Pedro

    11/11/2022, 12:17 AM
    Thank you! @natemccurdy
  • n

    Nishar

    11/11/2022, 6:38 AM
    Hello
  • s

    Slackbot

    11/11/2022, 6:39 AM
    This message was deleted.
    b
    d
    +2
    • 5
    • 14
  • d

    David Sandilands

    11/11/2022, 8:11 AM
    There's also UK government https://github.com/alphagov/govuk-puppet
  • d

    David Sandilands

    11/11/2022, 8:11 AM
    There's also ukgov https://github.com/alphagov/govuk-puppet
  • d

    David Sandilands

    11/11/2022, 8:11 AM
    There's also UK government https://github.com/alphagov/govuk-puppet
  • n

    Neeloj

    11/11/2022, 8:23 AM
    I do like you said, config/host groups and provide data to clients depends on their groups. But Ill see what check that with puppetdb (resources/resource statistics) thanks again @bastelfreak
  • j

    Jacobo Salas

    11/11/2022, 9:27 AM
    message has been deleted
  • j

    Jerome Teano

    11/11/2022, 9:49 AM
    Hi. Do we have here a demo on how to use the os_patching module. I'm new to puppet that's why I need a demo on how to implement it. Thanks.
  • g

    Ganaparthi Nikhil

    11/11/2022, 10:56 AM
    Hi guys ,team will you please help me to get out from this error
  • s

    Slackbot

    11/11/2022, 10:56 AM
    This message was deleted.
    b
    g
    • 3
    • 37
  • n

    Nishar

    11/11/2022, 1:53 PM
    message has been deleted
  • n

    Nishar

    11/11/2022, 2:00 PM
    From Foreman UI, we can view the report each host...But do u have any kind of script where we can get email once in a week about the changes that were made on puppet run and stuff like that @bastelfreak
  • s

    Slackbot

    11/11/2022, 5:25 PM
    This message was deleted.
    t
    b
    +3
    • 6
    • 6
  • b

    Brian Schonecker

    11/11/2022, 5:25 PM
    Good afternoon from "Survived Hurricane Nicole" country. I'm going to manage my /etc/hosts file (RHEL) and have considered puppetlabs-host_core and puppet-module-hosts but I'm confused as to how to properly purge the /etc/hosts file of unmanaged entries. I read this post about configuring:
    Copy code
    resources { 'host':
      purge => true,
    }
    but that seems a little non-standard to me. Is using the resources snippet (above) the proper way to purge the /etc/hosts? It does work but the metadadata.json file says that ghoneycutt's module does support purging of unmanaged entries but I've not found the correct way to purge. Should I use the resources trick above?
  • b

    Brian Schonecker

    11/11/2022, 5:26 PM
    Good afternoon from "Survived Hurricane Nicole" country. I'm going to manage my /etc/hosts file (RHEL) and have considered puppetlabs-host_core and puppet-module-hosts but I'm confused as to how to properly purge the /etc/hosts file of unmanaged entries. I read this post about configuring:
    Copy code
    resources { 'host':
      purge => true,
    }
    but that seems a little non-standard to me. Is using the resources snippet (above) the proper way to purge the /etc/hosts? It does work but the metadadata.json file from ghoneycutt's module says that the module does support purging of unmanaged entries but I've not found the correct way to purge. Should I use the resources trick above?
  • w

    William Myers

    11/11/2022, 10:07 PM
    So, I'm looking at setting up the following workflow with puppet open source and would like to be pointed in the right direction.
  • s

    Slackbot

    11/11/2022, 10:10 PM
    This message was deleted.
    s
    d
    w
    • 4
    • 4
  • w

    William Myers

    11/11/2022, 11:30 PM
    Wasn't sure if there was already a module floating around that does this or if I'll need to design something,, The end part and doing the server specific acceptance tests is something i'll probably need to work the longest on.
  • w

    William Myers

    11/11/2022, 11:37 PM
    This may be more of ansible friendly though?
1...232233234...428Latest