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

    Mike Fröhner (crazymind1337)

    11/30/2022, 1:04 PM
    but after the reboot
    search .
    is back because this file (the symlinked one) is written by the service systemd-resolved.
  • s

    Slackbot

    11/30/2022, 2:25 PM
    This message was deleted.
    n
    d
    +2
    • 5
    • 6
  • n

    n3snah

    11/30/2022, 2:32 PM
    I am not sure for open source Puppet Bolt but I feel like this will depend on your ssh client configuration. For Puppet Enterprise however its a configurable setting and I believe the default is 10. As for time. That is a different story. There is a default timeout value of 10 secs should a machine be unreachable so this will greatly affect your expected time if you have many machines which are unavailable.
  • s

    Slackbot

    11/30/2022, 3:31 PM
    This message was deleted.
    c
    f
    s
    • 4
    • 8
  • c

    Chris Hoffman

    11/30/2022, 3:33 PM
    where does one go to search/file bug reports?
  • c

    Chris Hoffman

    11/30/2022, 3:34 PM
    hello, is anyone run into the following SQL syntax error on puppetdb for puppet6? I've tried several versions, and the issue remains.
    Copy code
    2022-11-30 15:34:02.455 UTC [114518] puppetdb@puppetdb ERROR:  trailing junk after parameter at or near "$3A" at character 90
    2022-11-30 15:34:02.455 UTC [114518] puppetdb@puppetdb STATEMENT:  UPDATE certnames SET latest_report_id = $1,latest_report_timestamp = $2 WHERE certname = $3AND ( latest_report_timestamp < $4      OR latest_report_timestamp is NULL )
  • h

    helindbe

    11/30/2022, 3:38 PM
    https://tickets.puppetlabs.com/
  • n

    natemccurdy

    11/30/2022, 5:12 PM
    For the SSH transport, the default number simultaneous connections are 50. You can control that with the
    -c
    flag.
  • n

    natemccurdy

    11/30/2022, 5:13 PM
    For the SSH transport, the default number simultaneous connections are 100. You can control that with the
    -c
    flag.
  • s

    Slackbot

    11/30/2022, 7:57 PM
    This message was deleted.
    👍 2
    m
    • 2
    • 1
  • j

    Jason Grammenos

    11/30/2022, 9:16 PM
    go a operator precedence question:
    Copy code
    ($trusted['extensions']['pp_environment']) and ($trusted['extensions']['pp_environment'] == 'drs')
    will that properly check the variables existance before evaluating the second half of the and?
  • j

    Jason Grammenos

    11/30/2022, 9:16 PM
    go a operator precedence question:
    Copy code
    ($trusted['extensions']['pp_environment']) and ($trusted['extensions']['pp_environment'] == 'drs')
    will that properly check the variables existance before evaluating the second half of the and?
  • j

    Jason Grammenos

    11/30/2022, 9:17 PM
    or do i have to do nested if
    Copy code
    if ($trusted['extensions']['pp_environment']) {
        if ($trusted['extensions']['pp_environment'] == 'drs') {
    }
    }
  • n

    natemccurdy

    11/30/2022, 9:22 PM
    It'll stop evaluating at the first expression if it's falsey. So if
    $trusted['extensions']['pp_environment']
    is
    undef
    , the
    and ...
    won't be evaluated.
  • j

    Jason Grammenos

    11/30/2022, 9:22 PM
    ok, so puppet will properly shorcut the if expression. great, dont need the nested if. thanks @natemccurdy
    🍻 1
  • b

    bastelfreak

    11/30/2022, 9:37 PM
    @Jason Grammenos I think you can shorten it to
    getvar('trusted.extensions.pp_environment') == 'drs'
    👍 1
  • n

    natemccurdy

    11/30/2022, 9:46 PM
    Yup. +1 to
    getvar()
    . Or, my preference, `get()`:
    Copy code
    if $trusted.get('extensions.pp_environment') == 'dirs' {
    
    }
  • n

    natemccurdy

    11/30/2022, 9:47 PM
    Though actually
    getvar()
    would handle missing variables more cleanly in this case by returning
    undef
    if
    $trusted
    doesn't exist.
  • n

    natemccurdy

    12/01/2022, 1:28 AM
    For example, notice the "Unknown variable" warning with `get()`:
    Copy code
    $ puppet apply -e 'notice($foo.get("bar"))'
    Warning: Unknown variable: 'foo'. (line: 1, column: 8)
    Notice: Scope(Class[main]):
    Notice: Compiled catalog for workstation in environment production in 0.02 seconds
    Notice: Applied catalog in 0.01 seconds
    
    $ puppet apply -e 'notice(getvar("foo.bar"))'
    Notice: Scope(Class[main]):
    Notice: Compiled catalog for workstation in environment production in 0.02 seconds
    Notice: Applied catalog in 0.00 seconds
  • s

    Slackbot

    12/01/2022, 7:46 AM
    This message was deleted.
    r
    d
    • 3
    • 6
  • j

    Jan Hejda

    12/01/2022, 2:49 PM
    Hello, is it possible to use a wildcard in a get() function?
  • s

    Slackbot

    12/01/2022, 2:53 PM
    This message was deleted.
    j
    h
    • 3
    • 4
  • j

    Joel Wilson

    12/01/2022, 4:13 PM
    Ugh. Getting an issue where Puppet’s Ruby is unhappy because of XCRYPT and GLIBC.
  • s

    Slackbot

    12/01/2022, 4:23 PM
    This message was deleted.
    r
    l
    +6
    • 9
    • 22
  • r

    ramindk

    12/01/2022, 4:31 PM
    perf is usually better with an exec. If it's less than <1000, local perf is usually fine. However each file in the dir will be added to the catalog which may cause problems in Puppetdb, parsing logs, etc. If you can't avoid it, maybe look at something like https://github.com/npwalker/recursive_file_permissions (I've never used this module)
  • s

    Slackbot

    12/01/2022, 5:57 PM
    This message was deleted.
    s
    c
    +2
    • 5
    • 26
  • n

    natemccurdy

    12/01/2022, 6:17 PM
    If you don't want data to be overridable like that, don't put it in Hiera. You could instead just hard-code a variable in a class then include that class and refer to the variable by its fully-scoped name.
  • s

    Slackbot

    12/01/2022, 6:43 PM
    This message was deleted.
    b
    • 2
    • 3
  • k

    kenyon

    12/01/2022, 6:56 PM
    set the default to empty array
  • k

    kenyon

    12/01/2022, 6:59 PM
    lookup('classes', Array[String[1]], 'unique', []).include
    keanu thanks 1
1...243244245...428Latest