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

    William Myers

    12/11/2022, 1:10 AM
    Copy code
    22/tcp                     ALLOW       Anywhere
    6556/tcp                   ALLOW       Anywhere
    8140                       ALLOW       Anywhere
    8140/tcp                   ALLOW       Anywhere
    22/tcp (v6)                ALLOW       Anywhere (v6)
    6556/tcp (v6)              ALLOW       Anywhere (v6)
    8140 (v6)                  ALLOW       Anywhere (v6)
    8140/tcp (v6)              ALLOW       Anywhere (v6)
  • w

    William Myers

    12/11/2022, 1:10 AM
    It does the same with CheckMK (6556) as well
  • w

    William Myers

    12/11/2022, 1:11 AM
    Interesting, i see a duplicate entry there. I'm going to remove the generic 8140 w/o TCP specified
  • w

    William Myers

    12/11/2022, 1:12 AM
    Copy code
    22/tcp                     ALLOW       Anywhere
    6556/tcp                   ALLOW       Anywhere
    8140/tcp                   ALLOW       Anywhere
    22/tcp (v6)                ALLOW       Anywhere (v6)
    6556/tcp (v6)              ALLOW       Anywhere (v6)
    8140/tcp (v6)              ALLOW       Anywhere (v6)
  • y

    Yury Bushmelev

    12/11/2022, 2:13 AM
    Do you have anything like fail2ban or any other anti-scanners/security software?
  • w

    William Myers

    12/11/2022, 3:02 AM
    No, I'm giving FirewallD a try instead of UFW as I'm more accustomed to working with that anyway.
  • w

    William Myers

    12/11/2022, 3:03 AM
    If anything was the cause, it's probably something related to this, I'm not going to dig too much deeper unless the problem persists with FirewallD. https://forge.puppet.com/modules/hardening/os_hardening/readme
  • w

    William Myers

    12/11/2022, 3:04 AM
    If anything was the cause, it's probably something related to this, I'm not going to dig too much deeper unless the problem persists with FirewallD. https://forge.puppet.com/modules/hardening/os_hardening/readme
  • s

    Slackbot

    12/11/2022, 4:12 PM
    This message was deleted.
    h
    k
    s
    • 4
    • 5
  • s

    Steve Handy

    12/11/2022, 4:13 PM
    Good Day All, I am creating a yaml file in the C:\ProgramData\PuppetLabs\facter\facts.d to load a software inventory in Foreman. The yaml file is created via a Powershell script. I am currently getting an error when running a puppet agent -test command: "Error: Facter: Failed to handle C:\ProgramData/PuppetLabs/facter/facts.d/windowssoftware.yaml as LegacyFacter:UtilParser:YamlParser facts: invalid byte sequence in UTF-8" Here is my powershell: "$SOFTWAREFILE = "C:\windowssoftware.txt" $YAMLFILE = "C:\ProgramData\PuppetLabs\facter\facts.d\windowssoftware.yaml" $YAMLTESTFILE = "C:\test.yaml" if (Test-Path $YAMLFILE) { Remove-Item -Path $YAMLFILE -Recurse -Force } $INSTALLED = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName $INSTALLED += Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName $INSTALLED | ?{ $_.DisplayName -ne $null } | sort-object -Property DisplayName -Unique | Format-Table | Out-File -FilePath $SOFTWAREFILE (gc $SOFTWAREFILE) | Foreach {$_.TrimEnd()} | where {$_ -ne ""} | Set-Content $SOFTWAREFILE [string[]]$arrayFromFile = Get-Content -Path $SOFTWAREFILE $arraylength = $arrayFromFile.Length - 1 $YAMLDATA1 = "---" $YAMLDATA2 = "software:" $YAMLDATA1 | Out-File -FilePath $YAMLFILE -Append -Encoding utf7 $YAMLDATA2 | Out-File -FilePath $YAMLFILE -Append -Encoding utf7 For ($i=2; $i -le $arraylength; $i++) { if ($i -eq $arraylength) { " package$i"+': '+ "$($arrayFromFile[$i])" | Out-File -FilePath $YAMLFILE -Append } else { " package$i"+': '+ "$($arrayFromFile[$i])" | Out-File -FilePath $YAMLFILE -Append } } Can someone please assist? Thanks
  • s

    Slackbot

    12/11/2022, 6:09 PM
    This message was deleted.
    👍 3
    👍🏻 1
    j
    b
    +2
    • 5
    • 7
  • j

    Joshua Smeda

    12/12/2022, 10:52 AM
    Howdy, has anyone written a Puppet function to get an
    Array
    of files from a certain directory in Puppet?
  • j

    Joshua Smeda

    12/12/2022, 10:52 AM
    Howdy, has anyone written a Puppet function to get an
    Array
    of files inside a certain directory in Puppet?
  • j

    Joshua Smeda

    12/12/2022, 10:53 AM
    Howdy, has anyone written a Puppet function to get an
    Array
    of files inside a certain directory in Puppet (For Linux)?
  • j

    Joshua Smeda

    12/12/2022, 10:53 AM
    Howdy, has anyone written a Puppet function to get an
    Array
    of files inside a certain directory in Puppet? (For Linux)
  • s

    Slackbot

    12/12/2022, 10:54 AM
    This message was deleted.
    j
    a
    +4
    • 7
    • 23
  • a

    Antonin

    12/12/2022, 11:38 AM
    we had invalid entry in the json
    Copy code
    "data_provider": "",
    removing it /or setting it to null works... so we caused that ourselves. Thank you for help!
  • j

    Joshua Smeda

    12/12/2022, 11:43 AM
    message has been deleted
  • g

    Geoff Woodburn

    12/12/2022, 2:00 PM
    @Geoff Woodburn has left the channel
  • r

    ramindk

    12/12/2022, 5:32 PM
    You might consider https://github.com/voxpupuli/metadata-json-lint We used it at last job to avoid these sorts of problems.
  • s

    Slackbot

    12/12/2022, 8:41 PM
    This message was deleted.
    b
    a
    • 3
    • 5
  • s

    Slackbot

    12/12/2022, 10:39 PM
    This message was deleted.
    c
    n
    • 3
    • 12
  • n

    natemccurdy

    12/12/2022, 10:51 PM
    https://puppet.com/docs/puppet/7/lang_functions.html
  • s

    Slackbot

    12/13/2022, 9:55 AM
    This message was deleted.
    t
    j
    +2
    • 5
    • 8
  • s

    Slackbot

    12/13/2022, 10:35 AM
    This message was deleted.
    j
    r
    s
    • 4
    • 11
  • r

    RĂşben Almeida

    12/13/2022, 10:37 AM
    Hello all, I'm getting this error: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Function lookup() did not find a value for the name 'haproxy::listen' on node and this is my config for haproxy::listen': haproxy:listen 'admin': ipaddress: "%{lookup('haproxy:kubernetesvirtual:ipaddress')}" ports: '8089' mode: 'http' options: 'stats': - 'enable' - 'uri /haproxy?stats' 'timeout': - 'connect 10s' - 'client 1m' - 'server 1m' Do you know what could be wrong ? Google didn't provided much help TIA
  • j

    Joao Morgado

    12/13/2022, 11:10 AM
    try to have a look under here for future reference. If you’re new to Puppet. you might want to have a play with some hiera data in a dev environment, to validate how it works. https://puppet.com/docs/puppet/7/hiera_automatic.html Specially under: https://puppet.com/docs/puppet/7/hiera_automatic.html#using_puppet_lookup
  • s

    Slackbot

    12/13/2022, 1:10 PM
    This message was deleted.
    j
    m
    +2
    • 5
    • 65
  • j

    Joshua Smeda

    12/13/2022, 1:16 PM
    I noticed the link you mentioned doesn’t work, perhaps not a typo somewhere? (you have a extra p)
  • j

    Joshua Smeda

    12/13/2022, 1:19 PM
    use ssh, that’s what r10k uses I believe as it’s transport mechanism
1...251252253...428Latest