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

    CVQuesty

    06/08/2022, 2:46 PM
    Puppet spends a lot of time making sure there aren’t any “question dumps” or ways to game the system out there to keep the certification valuable. If you follow the study guide and go to the certification lounge, register, and take all the sessions, you should be rather well prepared from a theory perspective. You should also have some knowledge of administering Puppet directly to have maximum success.
  • s

    Slackbot

    06/08/2022, 3:02 PM
    This message was deleted.
    y
    j
    z
    • 4
    • 3
  • s

    simonhoenscheid

    06/08/2022, 4:01 PM
    Is there an option to force the puppetserver to log all lookups and the manifest which includes the lookup?
  • s

    Slackbot

    06/08/2022, 4:23 PM
    This message was deleted.
    b
    • 2
    • 1
  • s

    Slackbot

    06/08/2022, 5:08 PM
    This message was deleted.
    a
    g
    • 3
    • 4
  • g

    greglarkin

    06/08/2022, 5:11 PM
    @Allahshukur Ahmadzada I would also point you to our Puppet Practice Labs on the Puppet Education site: https://training.puppet.com/pages/20/puppet-practice-labs These labs provide an easy zero-install way to get hands-on with a variety of different Puppet-related topics. These are the same labs that we offer in our free PE 101, PE 201 and PE 301 classes that we also encourage you to take a look at: https://training.puppet.com/pages/23/instructor-led-training If you have any questions, just let me know!
  • j

    Jason Grammenos

    06/08/2022, 6:02 PM
    if I run the following map
    Copy code
    $query = $node_hostnames.map |$node| { "certname='${node}'" }
    using this data:
    Copy code
    mm::node_hostnames: 
      - 'hostname1.internal'
      - 'hostname2.internal'
    will i get an array
    Copy code
    $query == ["certname='hostname1.internal'",""certname='hostname2.internal'""]
  • j

    Jason Grammenos

    06/08/2022, 6:02 PM
    the puppet lambdas still confuse me.
  • l

    Lumiere

    06/08/2022, 6:06 PM
    that looks like exactly what map should do
  • s

    Skylar Thompson

    06/08/2022, 6:06 PM
    Yep, you'll get an array of strings
  • l

    Lumiere

    06/08/2022, 6:06 PM
    it takes the array you're mapping and returns an array of whatever the lambda returns
  • j

    Jason Grammenos

    06/08/2022, 6:07 PM
    cool, thanks @Lumiere @Skylar Thompson
    👍🏼 1
    👍 1
  • g

    greglarkin

    06/08/2022, 6:43 PM
    @Jason Grammenos I often use
    puppet apply
    for testing programming constructs with no resources involved, and I haven't used it as much, but I'll bet you can do the same in https://demo.puppet-debugger.com/. I create small .pp files like so:
    Copy code
    $node_hostnames = [ 'hostname1.internal', 'hostname2.internal' ]
    $query = $node_hostnames.map |$node| { "certname='${node}'" }
    
    notice($query)
  • g

    greglarkin

    06/08/2022, 6:43 PM
    And then run
    puppet apply /tmp/maptest.pp
    to see output:
    Copy code
    Notice: Scope(Class[main]): [certname='hostname1.internal', certname='hostname2.internal']
    Notice: Compiled catalog for gregs-macbook-pro.local in environment production in 0.04 seconds
    Notice: Applied catalog in 0.02 seconds
  • g

    greglarkin

    06/08/2022, 6:44 PM
    Hope that's helpful
  • s

    Slackbot

    06/08/2022, 6:52 PM
    This message was deleted.
    👍 1
    w
    b
    n
    • 4
    • 4
  • n

    nwops

    06/08/2022, 7:36 PM
    What would cause this error?
    unable to get certificate crl puppet
  • s

    Slackbot

    06/09/2022, 4:33 AM
    This message was deleted.
    b
    r
    h
    • 4
    • 17
  • d

    Dr Bunsen Honeydew

    06/09/2022, 11:45 AM
    the more you know 🧑‍🏫Puppet Forge is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    06/09/2022, 12:44 PM
    This message was deleted.
    🧵 1
    t
    m
    c
    • 4
    • 4
  • d

    Dr Bunsen Honeydew

    06/09/2022, 12:44 PM
    ```- lost a level. (Karma: -68)
  • s

    Slackbot

    06/09/2022, 12:51 PM
    This message was deleted.
    🧵 1
    h
    p
    • 3
    • 5
  • g

    glee

    06/09/2022, 12:53 PM
    @Moe epp is newer than erb; erb still works but not everyone will have migrated everything. epp templates are rendered with the
    epp()
    function not
    template()
  • g

    glee

    06/09/2022, 12:54 PM
    @Moe epp is newer than erb; erb still works but not everyone will have migrated everything. epp templates are rendered with the
    epp()
    function not
    template()
  • g

    glee

    06/09/2022, 12:54 PM
    ie: template() is for erb not epp
  • m

    Moe

    06/09/2022, 12:55 PM
    @glee Aha! Thanks for the pointer! I just switched the file resource to
    epp()
    and got new error messages. I'll try to figure them out first and if I hit a wall I might return 🙂
    👍 1
  • y

    Yury Bushmelev

    06/09/2022, 12:58 PM
    I'd recommend to pass variables explicitly into the epp template (2nd arg of epp() function)
  • m

    Moe

    06/09/2022, 12:59 PM
    I have read that, but at first I want to get it to work at all and then optimize it.
  • s

    Slackbot

    06/09/2022, 12:59 PM
    This message was deleted.
    ✅ 1
    y
    o
    b
    • 4
    • 19
  • m

    Moe

    06/09/2022, 1:34 PM
    @glee Thanks again! I found the remaining issues with my manifest and template code and iterating over a hash using epp works now. 🙂
1...606162...428Latest