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

    Nishar

    11/10/2022, 4:41 PM
    yes
  • n

    Nishar

    11/10/2022, 4:41 PM
    tried running as admin
  • c

    Chris Lee

    11/10/2022, 4:41 PM
    same error?
  • n

    Nishar

    11/10/2022, 4:41 PM
    yup
  • c

    Chris Lee

    11/10/2022, 4:41 PM
    hmmm...
  • n

    Nishar

    11/10/2022, 4:41 PM
    any idea?
  • c

    Chris Lee

    11/10/2022, 4:42 PM
    at the moment, nope
  • c

    Chris Lee

    11/10/2022, 4:43 PM
    10K+ other folks here though... hang tight
  • c

    Chris Lee

    11/10/2022, 4:43 PM
    sorry ~ I've not seen that before
  • c

    Chris Lee

    11/10/2022, 4:43 PM
    or rather, completely do not recall it
  • y

    Yorokobi

    11/10/2022, 4:44 PM
    Any errors if you run
    facter
    ? (or
    facter -d
    )
  • n

    Nishar

    11/10/2022, 4:50 PM
    no error
  • j

    josh

    11/10/2022, 5:28 PM
    We try to avoid introducing incompatibilities between puppetserver and puppet-agent packages in any stream, but best practice is to update both of them together. For example, I wouldn't suggest installing
    puppetserver 6.0.0
    and
    puppet-agent 6.28.0
    on the same host.
  • s

    Slackbot

    11/10/2022, 5:30 PM
    This message was deleted.
    n
    l
    +3
    • 6
    • 14
  • b

    Brian Schonecker

    11/10/2022, 5:31 PM
    Good afternoon from Hurricane Nicole country. Is there a way to reproduce this:
    $a = '/tmp/{foo,bar}'
    file{$a: ensure => directory, } in Hiera? I've got a lot of directories I need to create under a single parent directory and I don't want to have to do: ---
    file:
    /tmp/foo:
    ensure: directory
    /tmp/bar:
    ensure: directory
    /tmp/baz:
    ensure: directory
    but the following doesn't work:
    file:
    /tmp/{foo,bar,baz}:
    ensure: directory
    because it yields a single file called /tmp/{foo,bar}.
  • b

    Brian Schonecker

    11/10/2022, 5:31 PM
    Good afternoon from Hurricane Nicole country. Is there a way to reproduce this:
    $a = '/tmp/{foo,bar}'
    file{$a:
    ensure => directory,
    }
    in Hiera? I've got a lot of directories I need to create under a single parent directory and I don't want to have to do: ---
    file:
    /tmp/foo:
    ensure: directory
    /tmp/bar:
    ensure: directory
    /tmp/baz:
    ensure: directory
    but the following doesn't work:
    file:
    /tmp/{foo,bar,baz}:
    ensure: directory
    because it yields a single file called /tmp/{foo,bar}.
  • b

    Brian Schonecker

    11/10/2022, 5:31 PM
    Good afternoon from Hurricane Nicole country. Is there a way to reproduce this:
    $a = '/tmp/{foo,bar}'
    file{$a:
    ensure => directory,
    }
    in Hiera? I've got a lot of directories I need to create under a single parent directory and I don't want to have to do: ---
    file:
    /tmp/foo:
    ensure: directory
    /tmp/bar:
    ensure: directory
    /tmp/baz:
    ensure: directory
    but the following doesn't work:
    file:
    /tmp/{foo,bar,baz}:
    ensure: directory
    because it yields a single file called /tmp/{foo,bar,baz}.
  • j

    josh

    11/10/2022, 5:37 PM
    One thing to watch out for, if your catalog contains binary data which cannot be serialized to JSON, then puppetserver/agent will downgrade to
    pson
    which is lossy and breaks deferred resources. For example, the cached catalog may contain the following
    resource
    parameters:
    Copy code
    "parameters":{"message":"Deferred({'name' => 'sprintf', 'arguments' => ['%s', 'I am deferred']})"}}]
  • n

    natemccurdy

    11/10/2022, 5:38 PM
    Copy code
    $dirs = [
      '/tmp/foo',
      '/tmp/bar',
    ]
    
    file { $dirs:
      ensure => directory,
    }
    
    -----
    The hiera data version of $dirs is just an array in YAML:
    
    dirs:
      - /tmp/foo
      - /tmp/bar
  • b

    Brian Schonecker

    11/10/2022, 5:40 PM
    message has been deleted
  • n

    natemccurdy

    11/10/2022, 5:44 PM
    No harm in trying to optimize, but it’s in your Puppet code’s logic where most of that optimization will happen. And you’d have to code that logic yourself.
  • c

    Corey Hickey

    11/10/2022, 6:35 PM
    I have a question about something I'm trying to understand in the documentation: https://puppet.com/docs/puppet/7/types/exec.html#exec-description Specifically these parts: ---------------------------------------------------------------------------------------------------------------- Refresh:
    exec
    resources can respond to refresh events (via
    notify
    ,
    subscribe
    , or the
    ~>
    arrow). The refresh behavior of execs is non-standard, and can be affected by the
    refresh
    and
    refreshonly
    attributes: If the exec has already run and then receives an event, it runs its command up to two times. If an
    onlyif
    ,
    unless
    , or
    creates
    condition is no longer met after the first run, the second run does not occur. ---------------------------------------------------------------------------------------------------------------- If refresh events are received via
    notify
    ,
    subscribe
    , and the
    ~>
    arrow, then doesn't that create an ordering dependency such that the resources which provide the events will always run before the
    exec
    which receives those events? How can an
    exec
    receive an event after it has run?
  • n

    natemccurdy

    11/10/2022, 6:44 PM
    Yes, a refresh event also sets up ordering.
  • n

    natemccurdy

    11/10/2022, 6:45 PM
    Yes, a refresh event also sets up ordering.
  • c

    Corey Hickey

    11/10/2022, 6:45 PM
    That's what I thought and that's what I've seen. Is the documentation in error?
  • c

    Corey Hickey

    11/10/2022, 6:48 PM
    This commit which introduces that text is from quite a while back: https://github.com/puppetlabs/puppet/commit/b14b5e10da5106ded537ec613c95c71eca1e2650#diff-7b346a4c9ed8ffeefe92b019c[…]1cbfef09fc45485df64075adcc0R34
  • c

    Corey Hickey

    11/10/2022, 6:50 PM
    Maybe the behavior changed at some point? I didn't think
    exec
    worked that way even way back then, though I wouldn't rule out me not knowing that.
  • 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.
1...231232233...428Latest