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

    Dr Bunsen Honeydew

    10/23/2024, 10:57 PM
    See the
    dsc-networkingdsc
    module at https://forge.puppet.com/dsc/networkingdsc?src=slack&channel=puppet
  • r

    rismoney

    10/24/2024, 1:02 PM
    I may have asked this before- can't recall - Convert catalog - is there a way to evaluate where the time is spent? I dont think --evaltrace / summarize breaks it down.
  • r

    rismoney

    10/24/2024, 1:33 PM
    ah, debug with timestamp led me to a problematic provider. evicted it... puppet-powershellmodule doesn't leverage ruby-pwsh/caching.
  • j

    Joel Wilson

    10/24/2024, 1:54 PM
    I'm completely baffled by something going on. I've got a catalog with 2 Alternatives (from puppet-alternatives 5.1.0). One of them isn't executing, but the items on either side of it in the dependency chain are. It causes the Exec which is downstream of it to fail because it needed to do it's thing first, but didn't.
    • 1
    • 1
  • d

    Dr Bunsen Honeydew

    10/24/2024, 1:54 PM
    See the
    puppet-alternatives
    module at https://forge.puppet.com/puppet/alternatives?src=slack&channel=puppet
  • j

    Joel Wilson

    10/24/2024, 1:55 PM
    Debug output shows the dependencies, but doesn't have it doing the execution.
  • l

    lirion

    10/24/2024, 2:39 PM
    I'd like a resource to be applied only if another resource is not changed (so an inversion of notify, so to speak). Code so far looks like this:
    Copy code
    package { 'a':
      ensure => latest,
    }
    package { 'b':
      ensure  => latest,
      require => Package['a'],
    }
    The challenge behind is a software with a main installation package a and an update installation package b, the latter indeed requiring the former, and the installer quitting before having set everything in-place; so the logic I'd like to apply is "well give that thing the time between two agent runs before 'b' is applied". Has somebody done something similar before? :)
  • b

    bastelfreak

    10/24/2024, 2:41 PM
    sounds like your package is broken?
  • b

    bastelfreak

    10/24/2024, 2:42 PM
    does it start a service or similar?
  • l

    lirion

    10/24/2024, 2:44 PM
    Not broken, but bad vendor design. But the idea is good, a service could already be the answer. If so, I'll go ahead and require the software's service (it's a remote control agent software) to be running :)
  • c

    CVQuesty

    10/24/2024, 2:50 PM
    couldn't you do some contains and require the whole class that resource lives in instead of the resource itself?
  • c

    CVQuesty

    10/24/2024, 2:51 PM
    I've found that to get me over a hump like that in the past
  • l

    lirion

    10/24/2024, 2:56 PM
    I'm trying to wrap my head around that... I surmise that waiting for another resource implied by the package such as a service would be more reliable as its agent-run (and thus time) independent. But I'm curious nonetheless (and maybe testing shows I'll need that option). My brain right now translated this as: if package 'a' is successfully installed, there is a fact for that, and based on that very fact I could or could not contain the class managing package b. Right?
  • l

    Lumiere

    10/24/2024, 3:03 PM
    so, there's no fact, puppet creates a graph of dependency based on internal chaining as well as explicit chaining. you could make a fact via a ruby or external fact that returns the next run, so that you eventually become consistent
    keanu thanks 1
  • v

    vchepkov

    10/24/2024, 3:07 PM
    facts are collected before puppet applies manifest. so "installed" package fact will only available next run
  • v

    vchepkov

    10/24/2024, 3:08 PM
    for "difficult" packages like that God created
    exec
    resource 🙂
  • l

    lirion

    10/24/2024, 3:08 PM
    Also good (using custom facts through ruby, that is). I was just running in the wrong direction as it seems link run
  • d

    Dr Bunsen Honeydew

    10/24/2024, 4:45 PM
    goodnews 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • d

    Dr Bunsen Honeydew

    10/24/2024, 5:45 PM
    ☕ 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • b

    bastelfreak

    10/24/2024, 5:50 PM
    @josh https://github.com/puppetlabs/puppet/pull/9505 this should finally turn green now
    j
    • 2
    • 6
  • r

    rismoney

    10/24/2024, 7:43 PM
    can environment.conf contain any agent variables? like hostname ?
  • b

    bastelfreak

    10/24/2024, 7:44 PM
    no
  • r

    rismoney

    10/24/2024, 7:48 PM
    really wish the autoloader had some flexibility around what to include/omit for nodes.
  • b

    bastelfreak

    10/24/2024, 7:52 PM
    what do you mean?
  • r

    rismoney

    10/24/2024, 7:53 PM
    really pluginsync, not autoloader. by default (and afaict exclusively) a lib dir in a module must go out to all agents.
  • b

    bastelfreak

    10/24/2024, 7:53 PM
    yes it does
  • b

    bastelfreak

    10/24/2024, 7:53 PM
    adding logic to it would result in so many edge cases
  • b

    bastelfreak

    10/24/2024, 7:53 PM
    which problems do you have with it?
  • r

    rismoney

    10/24/2024, 7:54 PM
    not everything is cheap or really belongs on all the things.
  • b

    bastelfreak

    10/24/2024, 7:55 PM
    is it a problem that files are synced, or that they are executed?
1...417418419...428Latest