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

    Slackbot

    05/23/2023, 10:37 PM
    This message was deleted.
    c
    r
    • 3
    • 6
  • s

    Slackbot

    05/24/2023, 12:49 PM
    This message was deleted.
    r
    r
    +3
    • 6
    • 7
  • s

    Slackbot

    05/24/2023, 12:56 PM
    This message was deleted.
    s
    • 2
    • 1
  • s

    Slackbot

    05/24/2023, 1:17 PM
    This message was deleted.
    j
    b
    c
    • 4
    • 8
  • s

    Slackbot

    05/24/2023, 1:46 PM
    This message was deleted.
    c
    b
    • 3
    • 11
  • c

    Carlos Laviola

    05/24/2023, 1:53 PM
    does anyone know of a shorter way to do this idiom in puppet? I end up repeating it quite often, so if I can find something more compact and elegant that'd be nice:
    Copy code
    if $elligible_hosts.any |$host| { $facts[networking][fqdn] == $host } {
        $activate_ensure = file
      } else {
        $activate_ensure = absent
      }
    In this case it's to determine whether I want to materialise a particular file on a node or not. (I also tried a ternary operator in a selector, but at the time I was just trying to implicitly do the equivalent of
    any
    between my variable and the fact. maybe I can also do it using the lambda or
    member()
    , but I admit I haven't tried.)
  • s

    Slackbot

    05/24/2023, 1:55 PM
    This message was deleted.
    c
    b
    • 3
    • 3
  • s

    Slackbot

    05/24/2023, 1:56 PM
    This message was deleted.
    c
    b
    • 3
    • 4
  • b

    bastelfreak

    05/24/2023, 1:58 PM
    Copy code
    if $facts['networking']['fqdn'] in $elligible_hosts {
        $activate_ensure = file
      } else {
        $activate_ensure = absent
      }
    like that?
  • s

    Slackbot

    05/24/2023, 1:59 PM
    This message was deleted.
    c
    • 2
    • 1
  • b

    bastelfreak

    05/24/2023, 1:59 PM
    the whole setup sounds odd
  • s

    Slackbot

    05/24/2023, 1:59 PM
    This message was deleted.
    šŸ‘ 2
    āž• 1
    šŸ‘šŸ¼ 1
    c
    b
    • 3
    • 4
  • s

    Slackbot

    05/24/2023, 5:45 PM
    This message was deleted.
    b
    y
    +3
    • 6
    • 26
  • s

    Slackbot

    05/24/2023, 8:10 PM
    This message was deleted.
    s
    b
    s
    • 4
    • 14
  • b

    brokencode

    05/24/2023, 8:12 PM
    End result will end in ERB template, so I could run a loop in erb template, but would rather do that in puppet manifest
  • s

    Stephen

    05/24/2023, 10:40 PM
    Is there a blocker why puppetserver is not available in ubuntu jammy? the agent packages are there, but not the server packages
    this 2
  • s

    Stephen

    05/24/2023, 10:41 PM
    for puppet 7*
  • n

    natemccurdy

    05/24/2023, 11:33 PM
    @Stephen There aren't a lot of details, but here's the ticket tracking that: https://tickets.puppetlabs.com/browse/SERVER-3193
  • s

    Stephen

    05/25/2023, 12:14 AM
    Well that is nice to see, it's just been ignored for a year. It's probably just a few lines of yaml too...
  • b

    Balram thakur

    05/25/2023, 2:25 AM
    Hello team , i am running on puppet on windows server 2016 but getting below mcollective related error can anyone help me to fix this PS C:\Windows\system32> puppet --version 5.5.20 PS C:\Windows\system32> puppet agent -t Info: Using configured environment 'c20q_production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Info: Caching catalog for hqcsqlivara Info: Applying configuration version '1684940083' Notice: /Stage[main]/Mcollective:Facts/Scheduled task[mcollective facts yaml refresh]/ensure created (corrective) Error: /Stage[main]/Mcollective:Facts/Scheduled task[mcollective facts yaml refresh] Could not evaluate: (in OLE method `RegisterTaskDefinition': ) OLE error code:80070005 in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. Notice: /Stage[main]/Base:CommonMcollective/Scheduled task[mcollective clean public certs]/ensure created (corrective) Error: /Stage[main]/Base:CommonMcollective/Scheduled task[mcollective clean public certs] Could not evaluate: (in OLE method `RegisterTaskDefinition': ) OLE error code:80070005 in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. Notice: /Stage[main]/Base:CommonMcollective/Scheduled task[mcollective daily restart]/ensure created (corrective) Error: /Stage[main]/Base:CommonMcollective/Scheduled task[mcollective daily restart] Could not evaluate: (in OLE method `RegisterTaskDefinition': ) OLE error code:80070005 in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. Notice: Applied catalog in 35.49 seconds PS C:\Windows\system32>
  • s

    Slackbot

    05/25/2023, 6:31 AM
    This message was deleted.
    b
    w
    +3
    • 6
    • 18
  • s

    Slackbot

    05/25/2023, 10:05 AM
    This message was deleted.
    b
    y
    +2
    • 5
    • 4
  • s

    Slackbot

    05/25/2023, 4:50 PM
    This message was deleted.
    g
    n
    +3
    • 6
    • 5
  • d

    Dr Bunsen Honeydew

    05/25/2023, 5:45 PM
    fry dancing šŸ§‘ā€šŸ«Puppet Forge is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    05/26/2023, 8:23 AM
    This message was deleted.
    c
    b
    • 3
    • 21
  • b

    bastelfreak

    05/26/2023, 12:14 PM
    who is team dumpling and can I get a review from them? šŸ™‚ https://github.com/puppetlabs/r10k/pull/1336
  • e

    emerson_prado

    05/26/2023, 5:49 PM
    Hi all! I'd like to run
    bundle exec pdk validate --puppet-version=<Version>
    on a module I'm working on, to make sure I don't break its current Puppet compatibility. How do I check which versions are available, and install needed ones? I tried
    gem list puppet
    , then
    gem install puppet -v <Version>
    , but it still returns
    Unable to find a Puppet gem matching ~> <Version>
    .
  • e

    emerson_prado

    05/26/2023, 6:01 PM
    I don't know if I'm just trying too old versions. This is my attempt:
    gem list ^puppet$
    puppet (7.24.0, 7.23.0)
    sudo gem install puppet -v 4.7.0
    sudo gem install puppet -v 5.5.8
    sudo gem install puppet -v 5.5.22
    Done installing documentation for puppet after 11 seconds
    gem list ^puppet$
    puppet (7.24.0, 7.23.0, 5.5.22, 5.5.8, 4.7.0)
    Then:
    pdk validate --puppet-version=4.7.0
    `pdk (WARN): This module is compatible with an older version of PDK. Run
    pdk update
    to update it to your version of PDK.`
    pdk (ERROR): Unable to find a Puppet gem matching ~> 4.7.0.
    pdk validate --puppet-version=5.5.8
    `pdk (WARN): This module is compatible with an older version of PDK. Run
    pdk update
    to update it to your version of PDK.`
    pdk (ERROR): Unable to find a Puppet gem matching ~> 5.5.0.
    pdk validate --puppet-version=5.5.22
    `pdk (WARN): This module is compatible with an older version of PDK. Run
    pdk update
    to update it to your version of PDK.`
    pdk (ERROR): Unable to find a Puppet gem matching ~> 5.5.0.
  • b

    bastelfreak

    05/26/2023, 6:19 PM
    dont mix system gems with pdk, it wont work
  • b

    bastelfreak

    05/26/2023, 6:19 PM
    pdk has its own ruby and own gem dir
1...367368369...428Latest