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

    helindbe

    12/08/2022, 3:09 PM
    Maybe it is reading a different hiera.yaml? Or in a different environment, Check the paths.
  • b

    bastelfreak

    12/08/2022, 3:09 PM
    and adding --compile on the CLI is also helpful. especially in this case, where you use topscope variables in hiera.yaml
  • h

    helindbe

    12/08/2022, 3:09 PM
    Or, there is a difference in the set of facts.
  • s

    Stevan Svilokos

    12/08/2022, 3:12 PM
    ty both! I already tried
    --compile
    and lookup command is not an issue it is able to find and process the hiera entry, lookup function is simply skipping the
    Hierarchy entry
    it only picks up the name, but doesn't process the paths, and skips to next
    Hierarchy entry
    😞
  • s

    Stevan Svilokos

    12/08/2022, 3:54 PM
    ok I've found what it is... hopefully this will help someone if anyone runs into similar issue... I'm performing these tests on my lab environment, using VScode with SSH directly to my code path... so all new files in that hiararchy entry path ended up 0700 root:root 😞 puppet lookup command -> ran with sudo, puppet run runs as pe-puppet user so it needs access 😞 Thank you all for your input (and I hope this will help next silly person that tests things the way I do 😢 )
  • s

    Stevan Svilokos

    12/08/2022, 3:54 PM
    ok I've found what it is... hopefully this will help someone if anyone runs into similar issue... I'm performing these tests on my lab environment, using VScode with SSH directly to my code path... so all new files in that hiararchy entry path ended up 0700 root:root 😞 puppet lookup command -> ran with sudo, puppet run runs as pe-puppet user so it needs access 😞 Thank you all for your input (and I hope this will help next silly person that tests things the way I do 😢 )
  • w

    wil.rodriguez

    12/08/2022, 4:00 PM
    Good news! Turns out I'm dumb and didn't realize that the
    .puppet-lint.rc
    file actually WAS working. There were just some new checks that weren't documented on the puppet-lint website included in the PDK for parameter documentation and I thought they were supposed to be turned off by the
    --no-documentation-check
    setting, but it turns out, I was wrong. I found the relevant checks via
    pdk bundle exec puppet-lint --help
    and then turned them off and it worked as expected. Thanks to everyone for your ideas and support.
  • h

    helindbe

    12/08/2022, 4:22 PM
    Day 8 posted: https://github.com/puppetlabs/community/discussions/28#discussioncomment-4344810 This was a fun one!
  • s

    Slackbot

    12/08/2022, 5:13 PM
    This message was deleted.
    w
    p
    +2
    • 5
    • 14
  • w

    wil.rodriguez

    12/08/2022, 5:18 PM
    You could also generate the array and reverse it
  • p

    P. Aiello

    12/08/2022, 5:20 PM
    the reason is: https://github.com/puppetlabs/community/discussions/28
  • g

    gary

    12/08/2022, 10:52 PM
    Is there a way to set DNS_ALT_NAMES or change the CN for the puppetdb cert (via the deb install method) like how the puppetdb docker image allow you to?
  • s

    Slackbot

    12/09/2022, 1:01 AM
    This message was deleted.
    y
    a
    b
    • 4
    • 9
  • a

    Alan Hargreaves

    12/09/2022, 1:05 AM
    Been dealing with an issue on Solaris with insync() in
    lib/puppet/provider/package/pkg.rb
    , specifically in a global zone with a lot of non-global zones (one of mine has 75 of them), an
    pkg update -n
    to verify the correct version of a package is both enormously expensive, and, if we are running puppet in the zones, doomed to fail. It seems to me that the information we want already exists in the output of the
    pkg(:list, '-Hvfa', "#{name}@#{should}")
    , in that if the final column has an “i” in it, then that states that tis is the version that is currently installed.
  • s

    Slackbot

    12/09/2022, 8:45 AM
    This message was deleted.
    🆘 3
    b
    j
    • 3
    • 2
  • s

    Slackbot

    12/09/2022, 11:22 AM
    This message was deleted.
    y
    j
    +3
    • 6
    • 10
  • d

    Diana Scannicchio

    12/09/2022, 11:23 AM
    Hello everybody, not sure this is a correct place. I think to have found a bug in facter affecting the diskless node configured to run "puppet apply": puppetserver version: 7.9.2 puppet agent version: 7.20.0 facter version: 4.2.13
    Copy code
    [root@sbc]# facter partitions
    [2022-12-01 08:49:13.828011 ] ERROR Facter::InternalFactManager - undefined method `[]' for nil:NilClass
    Likely the issue does not prevent the correct configuration of the nodes, but it produce an error: Error: Facter: undefined method `[]' for nil:NilClass
  • d

    Diana Scannicchio

    12/09/2022, 11:23 AM
    Hello everybody, not sure this is a correct place. I think to have found a bug in facter affecting the diskless node configured to run "puppet apply": puppetserver version: 7.9.2 puppet agent version: 7.20.0 facter version: 4.2.13
    Copy code
    [root@sbc]# facter partitions
    [2022-12-01 08:49:13.828011 ] ERROR Facter::InternalFactManager - undefined method `[]' for nil:NilClass
    Likely the issue does not prevent the correct configuration of the nodes, but it produce an error: Error: Facter: undefined method `[]' for nil:NilClass
  • j

    josh

    12/09/2022, 3:46 PM
    Please do file a FACT ticket
  • y

    Yury Bushmelev

    12/09/2022, 4:10 PM
    Hi @josh! How one can register in the Puppet Jira these days? Ppl are asking about this frequently..
  • s

    Slackbot

    12/09/2022, 6:39 PM
    This message was deleted.
    b
    g
    +2
    • 5
    • 11
  • h

    hbarina

    12/09/2022, 6:42 PM
    message has been deleted
  • s

    Slackbot

    12/09/2022, 6:47 PM
    This message was deleted.
    s
    h
    • 3
    • 2
  • h

    hbarina

    12/09/2022, 6:47 PM
    Hi, Question about hash 'addition' in puppet DSL. I currently on (PE) puppet 6 and will be going to 7 sometime next year. I really like the new way to deal with hashes. So
    newhash = hash1 + hash2
    Works well for me, entries with common keys from hash2 override and replace those in hash1 Can I do something like:
    newhash = (hash1 + hash2) + hash3
    Seems like you should. Thanks
  • y

    Yorokobi

    12/09/2022, 6:48 PM
    Maybe but I can't learn the hard lessons on my own if I use Puppet Lab's modules (and, iirc, this one is kinda terrible).
  • d

    Diana Scannicchio

    12/10/2022, 8:47 AM
    Hello everybody, not sure this is a correct place. I think to have found a bug in facter affecting the diskless node configured to run "puppet apply": puppetserver version: 7.9.2 puppet agent version: 7.20.0 facter version: 4.2.13
    Copy code
    [root@sbc]# facter partitions
    [2022-12-01 08:49:13.828011 ] ERROR Facter::InternalFactManager - undefined method `[]' for nil:NilClass
    Likely the issue does not prevent the correct configuration of the nodes, but it produce an error: Error: Facter: undefined method `[]' for nil:NilClass.
  • d

    Diana Scannicchio

    12/10/2022, 8:48 AM
    Hello everybody, not sure this is a correct place. I think to have found a bug in facter affecting the diskless node configured to run "puppet apply": puppetserver version: 7.9.2 puppet agent version: 7.20.0 facter version: 4.2.13
    Copy code
    [root@sbc]# facter partitions
    [2022-12-01 08:49:13.828011 ] ERROR Facter::InternalFactManager - undefined method `[]' for nil:NilClass
    Likely the issue does not prevent the correct configuration of the nodes, but it produce an error: Error: Facter: undefined method `[]' for nil:NilClass. Added: I believe that the bug is in "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/linux/partitions.rb" line 9: the possibility of not having a disk and therefore a partitions is not accounted for.
  • w

    William Myers

    12/11/2022, 1:08 AM
    I'm troubleshooting an issue with UFW on my Ubuntu 20.04 puppetserver, after about 24 hours or so it'll start blocking Puppet traffic for some reason, leaving trails like this even though port 8140 is explicitly allowed.
    Copy code
    Dec  8 14:47:19 vmpuppetmaster01 kernel: [ 1521.332427] [UFW BLOCK] IN=ens160 OUT= MAC=00:50:56:95:ad:31:74:ac:b9:3a:65:1b:08:00 SRC=192.168.60.10 DST=192.168.4.62 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=23093 DF PROTO=TCP SPT=59528 DPT=8140 WINDOW=64240 RES=0x00 SYN URGP=0
  • w

    William Myers

    12/11/2022, 1:08 AM
    Reloading UFW will temporarily resolve it, but I'm currently scratching my head.
  • w

    William Myers

    12/11/2022, 1:09 AM
    It does the same with CheckMK (6556) as well
1...250251252...428Latest