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

    Steve Handy

    12/15/2022, 10:48 PM
    Hi @natemccurdy. How are you? The data doesnt load in Foreman. A shortened version of the data appears in Foreman like this:
  • s

    Steve Handy

    12/15/2022, 10:49 PM
    @natemccurdy - Now if I try to save and send that longer data it doesn't appear
  • s

    Steve Handy

    12/15/2022, 10:49 PM
    Hi @natemccurdy. How are you? The data doesnt load in Foreman. A shortened version of the data appears in Foreman like this given I save the file in a shortened number of rows
  • s

    Steve Handy

    12/15/2022, 10:50 PM
    well no its not truncated. If I save say only a few rows in the file, it uploads.
  • s

    Steve Handy

    12/15/2022, 11:07 PM
    message has been deleted
  • s

    Steve Handy

    12/15/2022, 11:09 PM
    Gonna see if I can generate a much smaller installed software list. The PowerShell script I use grabs everything in registry. Only really need general listing from Programs in Control Panel
  • s

    Steve Handy

    12/15/2022, 11:17 PM
    message has been deleted
  • q

    qwerty126

    12/15/2022, 11:48 PM
    Hello, I’ve noticed that when the puppetdb docker image is updated and the container restarted with the new image, the reports are wiped from the postgres database. Why is that happening and is there a way to retain data? It’s not wiped when a container is just restarted with the same image, only when the image changes. Is this likely to be something wrong in the docker-compose config?
  • s

    Slackbot

    12/16/2022, 12:38 AM
    This message was deleted.
    w
    n
    y
    • 4
    • 26
  • n

    natemccurdy

    12/16/2022, 12:47 AM
    Yeah, it's a benign error. The setting it's controlling does get set, it's just that the YAML parser that extension is using is being extra strict.
  • n

    natemccurdy

    12/16/2022, 12:50 AM
    Ah, here you go: https://github.com/redhat-developer/vscode-yaml/issues/392#issuecomment-727412143
  • n

    natemccurdy

    12/16/2022, 1:00 AM
    no idea. I just go to the extensions's gear icon and click "Extension Settings" Then, under "Yaml: Custom Tags", click "Edit in settings.json"
  • q

    qwerty126

    12/16/2022, 2:12 AM
    message has been deleted
  • q

    qwerty126

    12/16/2022, 2:12 AM
    message has been deleted
  • y

    Yury Bushmelev

    12/16/2022, 4:59 AM
    JFYI, you can write the rsyslog config in this way:
    Copy code
    # Handle messages as specified.
    if $programname == 'ucarp' then {
    action(type="omfile" file="/var/log/ucarp.log")
    # Send messages to the configured remote via TCP.
    action(type="omfwd" target="127.0.0.1" port="11514")
    stop
    }
    This way you don’t need those “&” at all. This syntax is more-or-less available in any rsyslog 8.x (and even in some latest 7.x IIRC).
  • y

    Yury Bushmelev

    12/16/2022, 5:02 AM
    JFYI, you can write the rsyslog config in this way:
    Copy code
    if $syslogfacility-text =='local5' then {
    # Write it to the local file
    action(type="omfile" file="/var/log/ucarp.log")
    # Send it to the specified target via the specified proto
    action(type="omfwd" target="127.0.0.1" port="11514" protocol="tcp")
    # Drop it here
    stop
    }
    This way you don’t need those “&” at all. This syntax is more-or-less available in any rsyslog 8.x (and even in some latest 7.x IIRC).
  • y

    Yury Bushmelev

    12/16/2022, 5:05 AM
    JFYI, you can write the rsyslog config in this way:
    Copy code
    if $syslogfacility-text =='local5' then {
    # Write it to the local file
    action(type="omfile" file="/var/log/local5.log")
    # Send it to the specified target via the specified proto
    action(type="omfwd" target="127.0.0.1" port="11514" protocol="tcp")
    # Drop it here
    stop
    }
    This way you don’t need those “&” at all. This syntax is more-or-less available in any rsyslog 8.x (and even in some latest 7.x IIRC).
  • y

    Yury Bushmelev

    12/16/2022, 5:15 AM
    Please check the EditorConfig: 1. https://editorconfig.org/ 2. https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig 3. https://github.com/voxpupuli/puppet-chrony/blob/master/.editorconfig
  • s

    Slackbot

    12/16/2022, 5:17 PM
    This message was deleted.
    b
    f
    • 3
    • 5
  • w

    William Myers

    12/16/2022, 8:06 PM
    For a puppetfile, is there a way to have it prefer a specific "test" branch by default for a given environment?
  • w

    William Myers

    12/16/2022, 8:06 PM
    that way one doesn't need to edit the puppetfile before merging to production?
  • w

    William Myers

    12/16/2022, 8:06 PM
    that way one doesn't need to edit the puppetfile before merging to production?
  • y

    Yorokobi

    12/16/2022, 8:11 PM
    https://puppet.com/docs/pe/2019.8/puppetfile.html#declare_content_from_a_relative_control_repo_branch (if your module has branches that match your control repository)
  • w

    William Myers

    12/16/2022, 8:12 PM
    oooh I like it
  • s

    Steve Handy

    12/16/2022, 11:06 PM
    message has been deleted
  • s

    Slackbot

    12/16/2022, 11:12 PM
    This message was deleted.
    y
    s
    d
    • 4
    • 139
  • y

    Yury Bushmelev

    12/17/2022, 4:22 AM
    i.e. if you have no Foreman it’ll still work this way with pure OSS Puppet
  • y

    Yury Bushmelev

    12/17/2022, 4:33 AM
    easiest way to test is e.g.
    file { '/tmp/packages.txt': content => $facts['software'] }
  • y

    Yury Bushmelev

    12/17/2022, 4:33 AM
    easiest way to test is e.g.
    file { '/tmp/packages.txt': content => $facts.get('software') }
1...254255256...428Latest