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

    Joshua Smeda

    12/13/2022, 1:20 PM
    I see we actually do too, so I guess it works too because we don’t face problems
  • j

    Joshua Smeda

    12/13/2022, 1:24 PM
    what is this
    :latest
    ?
  • j

    Joshua Smeda

    12/13/2022, 1:26 PM
    Ah, I see it’s valid as per: https://github.com/puppetlabs/r10k/blob/main/doc/puppetfile.mkd
  • j

    Joshua Smeda

    12/13/2022, 1:30 PM
    Yeah, looks right from what you’re showing me - maybe this helps in some way? https://github.com/voxpupuli/puppet-r10k/issues/409
  • d

    Dr Bunsen Honeydew

    12/13/2022, 2:45 PM
    waiting 🧑‍🏫 Bolt is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    12/13/2022, 3:01 PM
    This message was deleted.
    l
    w
    +4
    • 7
    • 61
  • d

    Dr Bunsen Honeydew

    12/13/2022, 3:45 PM
    fry dancing _🦊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in #CFD8Z9A4T
  • w

    woolfy

    12/13/2022, 4:38 PM
    What puppet release should be used for fedora 33?
  • r

    ramindk

    12/13/2022, 5:28 PM
    Lastly you can play some games in your cloud-init (kickstart?) phase before Puppet runs.
    apt-get update && etc etc
    or just populating all the service accounts if you're not using ldap/sssd for that. Might help cut down on the time in Puppet.
  • c

    CVQuesty

    12/13/2022, 5:56 PM
    33 doesn’t appear to be supported yet. Only 32
  • c

    CVQuesty

    12/13/2022, 5:56 PM
    actually, I just found 34 & 36
  • c

    CVQuesty

    12/13/2022, 5:56 PM
    33 seems to not exist.
  • c

    CVQuesty

    12/13/2022, 5:57 PM
    http://yum.puppet.com/puppet/fedora/index.html
  • w

    woolfy

    12/13/2022, 6:28 PM
    Will try my luck with 34 than
  • h

    hbui

    12/13/2022, 6:31 PM
    I think we typically ran the prior version (i.e. 32). Please keep in mind that Fedora <36 is end of life or will be shortly
    👍 1
  • s

    Slackbot

    12/13/2022, 8:35 PM
    This message was deleted.
    n
    b
    p
    • 4
    • 11
  • n

    natemccurdy

    12/13/2022, 8:39 PM
    Is the toy-chest puppetserver image different from https://github.com/puppetlabs/puppetserver/tree/main/docker/puppetserver ?
  • s

    Slackbot

    12/13/2022, 8:44 PM
    This message was deleted.
    t
    • 2
    • 1
  • n

    natemccurdy

    12/13/2022, 8:46 PM
    $name
  • s

    smortex

    12/13/2022, 8:47 PM
    $module_name
    ?
  • s

    Slackbot

    12/13/2022, 8:47 PM
    This message was deleted.
    👍 2
    t
    n
    • 3
    • 4
  • s

    Slackbot

    12/13/2022, 9:10 PM
    This message was deleted.
    r
    n
    +4
    • 7
    • 27
  • n

    natemccurdy

    12/13/2022, 9:18 PM
    Do you mean literally a "noop" as in the
    noop
    metaparameter of Puppet? Or do you mean something like Python's
    pass
    which just evaluates to nothing and continues on? I'm gonna assume the latter because Puppet errors out on branches of an
    if
    statement that don't evaluate to anything and I'm guessing you're hitting that error?
  • n

    natemccurdy

    12/13/2022, 9:22 PM
    Hmm... maybe that parser feature got turned off in a recent update... I can't get it to error out on an
    if
    statement that produces no value anymore. Weird 🤷
  • n

    natemccurdy

    12/13/2022, 9:27 PM
    facts
    is a reserved word and cannot be defined in local scopes, it only ever exists in "top scope". So there will never be any ambiguity in the variable named
    facts
  • s

    smortex

    12/13/2022, 11:07 PM
    If you have te deal with arch specific things in your control-repo, you can also do this kind of things (from my control-repo where it is linux vs windows):
    Copy code
    class profile::base {
      include "profile::base::${fact('kernel')}"
      # [...]
    }
  • y

    Yury Bushmelev

    12/14/2022, 2:35 AM
    I’m fan of “lest” function these days :) writing from phone so might be not fully correctt
  • y

    Yury Bushmelev

    12/14/2022, 2:35 AM
    I’m fan of “lest” function these days :) writing from phone so might be not fully correct
  • n

    natemccurdy

    12/14/2022, 4:59 AM
    In your case, I imagine the
    software
    fact would be better as a JSON file. Like this:
    Copy code
    $ cat /etc/puppetlabs/facter/facts.d/software.json
    {
      "software": [
        "Firefox",
        "Opera",
        "Google Chrome",
        "Nmap"
      ],
      "foo": "bar"
    }
    Note that this creates two facts: • One called
    software
    , that is an Array of Strings. • One called
    foo
    , that is a String. Using those facts would look something like this:
    Copy code
    $ cat fact_test_json.pp
    notice("foo resolves to: ${facts.get('foo')}")
    
    # Iterate over each array item in the `software` fact, then notice() it:
    $facts.get('software').each |$package_name| {
      notice($package_name)
    }
    Applying that Puppet code looks like this:
    Copy code
    $ sudo puppet apply fact_test.pp
    Notice: Scope(Class[main]): foo resolves to: bar
    Notice: Scope(Class[main]): Firefox
    Notice: Scope(Class[main]): Opera
    Notice: Scope(Class[main]): Google Chrome
    Notice: Scope(Class[main]): Nmap
    Notice: Compiled catalog for nate.localdomain in environment production in 0.05 seconds
    Notice: Applied catalog in 0.01 seconds
  • n

    natemccurdy

    12/14/2022, 4:59 AM
    In your case, I imagine the
    software
    fact would be better as a JSON file. Like this:
    Copy code
    $ cat /etc/puppetlabs/facter/facts.d/software.json
    {
      "software": [
        "Firefox",
        "Opera",
        "Google Chrome",
        "Nmap"
      ],
      "foo": "bar"
    }
    Note that this creates two facts: • One called
    software
    , that is an Array of Strings. • One called
    foo
    , that is a String. Using those facts would look something like this:
    Copy code
    $ cat fact_test_json.pp
    notice("foo resolves to: ${facts.get('foo')}")
    
    # Iterate over each array item in the `software` fact, then notice() it:
    $facts.get('software').each |$package_name| {
      notice($package_name)
    }
    Applying that Puppet code looks like this:
    Copy code
    $ sudo puppet apply fact_test_json.pp
    Notice: Scope(Class[main]): foo resolves to: bar
    Notice: Scope(Class[main]): Firefox
    Notice: Scope(Class[main]): Opera
    Notice: Scope(Class[main]): Google Chrome
    Notice: Scope(Class[main]): Nmap
    Notice: Compiled catalog for nate.localdomain in environment production in 0.05 seconds
    Notice: Applied catalog in 0.01 seconds
1...252253254...428Latest