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

    Saad Illahi

    07/17/2023, 6:41 PM
    Hello, is this the correct channel for asking questions regarding Puppet & integrations?
  • c

    CVQuesty

    07/17/2023, 6:43 PM
    give it a go.
  • s

    Slackbot

    07/17/2023, 6:45 PM
    This message was deleted.
    c
    c
    +3
    • 6
    • 12
  • s

    Slackbot

    07/17/2023, 7:41 PM
    This message was deleted.
    k
    r
    +3
    • 6
    • 8
  • t

    TheMeier

    07/18/2023, 8:25 AM
    Are there any news for bookworm packages?
  • d

    Dunatotatos

    07/18/2023, 8:51 AM
    Hi, I'm trying to write a provider to manage open and closed ports with firewalld. I know that a module already exists for that, but it is mostly for learning purpose. However, I encounter 2 issues.
    pdk
    creates the type and provider with
    SimpleProvider
    , which is fine. The
    delete
    method gets a context and a name as parameters, but no
    should
    , and there is no way to find which port and protocol should be removed. Is there another solution than forcing this information to be stored in the name of the resource? Second issue I have with SimpleProvider is the syntax to use to confine the provider. How to use the equivalent of
    :command
    and
    :confine
    that we have in a low-level implementation?
  • d

    Dr Bunsen Honeydew

    07/18/2023, 1:45 PM
    goodnews Content and Tooling is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    07/18/2023, 2:12 PM
    This message was deleted.
    w
    l
    +2
    • 5
    • 34
  • s

    Slackbot

    07/18/2023, 3:18 PM
    This message was deleted.
    y
    p
    +4
    • 7
    • 24
  • d

    Dr Bunsen Honeydew

    07/18/2023, 4:45 PM
    fry dancing 🧑‍🏫Puppet Core Team is about to start up in #CFD8Z9A4T
  • a

    Andy Fry

    07/18/2023, 10:19 PM
    This one seems pretty basic. I can determine if a string occurs in an array. If 'docker.io' in $facts['installed_packages'] But how do I determine if it's not there? If ! docker.io' in $facts['installed_packages'] Doesn't seem to do what I expected
  • n

    natemccurdy

    07/18/2023, 10:35 PM
    Try:
    Copy code
    unless '<http://docker.io|docker.io>' in $facts['installed_packages'] {
      # do something
    }
  • n

    natemccurdy

    07/18/2023, 10:37 PM
    But the actual problem you're hitting is an order of operations issue. If you wrap the
    in
    expression in parenthesis, it works too. For example:
    Copy code
    # This works because of the parenthesis. The ! negates the expression in parenthesis.
    if ! ('<http://docker.io|docker.io>' in $facts['installed_packages']) {
      # do something
    }
  • n

    natemccurdy

    07/18/2023, 10:39 PM
    Without the parenthesis, Puppet was evaluating the chain of expressions from left to right like this:
    ! '<http://docker.io|docker.io>'
    then
    in $facts['installed_packages']
    And
    ! 'some_string'
    evaluates to
    false
    , so Puppet was actually running:
    if false in $facts['installed_packages']
  • n

    natemccurdy

    07/18/2023, 10:40 PM
    @Andy Fry ☝️
  • a

    Andy Fry

    07/19/2023, 12:04 AM
    @natemccurdy thanks heaps. Makes perfect sense now. Bit of a brain fart on my end.
    🍻 1
  • e

    edwin

    07/19/2023, 11:20 AM
    The Forge is under maintenance 🔧 https://puppet.statuspage.io/
  • c

    CVQuesty

    07/19/2023, 1:50 PM
    Thank you guys for all you do.
    goteam 1
  • v

    vchepkov

    07/19/2023, 1:50 PM
    But it would be nice if there was an actual RSS feed there
    🙂 2
  • v

    vchepkov

    07/19/2023, 1:50 PM
    no events
  • c

    CVQuesty

    07/19/2023, 1:51 PM
    meh. I can wait it out one day in a blue moon
  • l

    Lumiere

    07/19/2023, 1:51 PM
    https://puppet.statuspage.io/history.rss (under subscribe to updates)
    ☝️ 1
  • c

    CVQuesty

    07/19/2023, 1:51 PM
    Of course, who even has an RSS reader any more?
    😄 1
  • l

    Lumiere

    07/19/2023, 1:52 PM
    I mean, there's atom too
  • b

    bastelfreak

    07/19/2023, 1:52 PM
    has one
    ✔️ 2
  • c

    CVQuesty

    07/19/2023, 1:52 PM
    We’ve already determined you live in the dark ages there, @bastelfreak
  • v

    vchepkov

    07/19/2023, 1:52 PM
    Well, it's a browser plugin. @Lumiere, that feed is empty
  • l

    Lumiere

    07/19/2023, 1:53 PM
    😞
  • p

    Pourya

    07/19/2023, 2:07 PM
    I’m probably missing a basic point here But this lookup works
    Copy code
    # puppet lookup classes --node <http://mynodename.mydomain.com|mynodename.mydomain.com>
    ---
    - role_puppetserver
    However on the same node when I run
    puppet agent -t
    I get
    Copy code
    Info: Loading facts
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'classes' failed: The second element of the merge has wrong type, expects a value of type Scalar or Array, got Undef (file: /etc/puppetlabs/code/environments/prod/manifests/site.pp, line: 11, column: 1) on node <http://mynodename.mydomain.com|mynodename.mydomain.com>
  • s

    Scott Macmillan

    07/19/2023, 2:15 PM
    I’d recommend digging into that file at that line and seeing what doesn’t make sense.
1...393394395...428Latest