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

    smortex

    07/28/2022, 12:31 AM
    Hum, crash trying to get facts for hypervisors… if you don't care about this it seems it's blockable (
    facter --list-block-groups
    )
  • s

    smortex

    07/28/2022, 12:32 AM
    https://github.com/puppetlabs/facter/blob/main/lib/facter/facts/windows/hypervisors/hyperv.rb#L19 no manufacturer found, so can't check if it include microsoft… This include is weird, do they expect an array of manufacturers? 😲
  • s

    smortex

    07/28/2022, 12:32 AM
    https://github.com/puppetlabs/facter/blob/main/lib/facter/facts/windows/hypervisors/hyperv.rb#L19 no manufacturer found, so can't check if it include microsoft… This include is weird, do they expect an array of manufacturers? 😲
  • s

    smortex

    07/28/2022, 12:33 AM
    see
    blocklist
    in https://puppet.com/docs/puppet/7/configuring_facter.html Might help
  • s

    smortex

    07/28/2022, 12:35 AM
    I am curious if we can get more DMI info from windows: on linux I have e.g. the BIOS version but windows has limited info compared with it.
  • v

    vchepkov

    07/28/2022, 12:37 AM
    I am so inept in windows it takes me forever create facter.conf , so you need to guide me for that. what is dmidecode there?
  • s

    smortex

    07/28/2022, 12:37 AM
    dmi linux vs windows
  • s

    smortex

    07/28/2022, 12:37 AM
    dmi linux vs windows
  • s

    smortex

    07/28/2022, 12:39 AM
    Never tried but let's follow the doc:
    facts: { blocklist: ["hypervisors"] }
    in
    C:\ProgramData\PuppetLabs\facter\etc\facter.conf
    ?
  • v

    vchepkov

    07/28/2022, 12:39 AM
    no I got that part 🙂
  • v

    vchepkov

    07/28/2022, 12:39 AM
    I was talking about DMI
  • s

    smortex

    07/28/2022, 12:40 AM
    Ah, it's was just a question for me to myself 🙂
  • s

    smortex

    07/28/2022, 12:41 AM
    Seing things related to dmi… I though it was not available on windows
  • s

    smortex

    07/28/2022, 12:41 AM
    is a noob in windows too
  • v

    vchepkov

    07/28/2022, 12:41 AM
    blocking hypervisors helped to cure the error
  • s

    smortex

    07/28/2022, 12:42 AM
    🎉 and no patching of the Enterprise code 😛
  • s

    smortex

    07/28/2022, 12:42 AM
    🎉 and no patching of the Enterprise code 😛
  • v

    vchepkov

    07/28/2022, 12:42 AM
    cfacter still lies ¯\_(ツ)_/¯
  • s

    smortex

    07/28/2022, 12:43 AM
    Yeah, but you can switch to facterng ? 😁
  • v

    vchepkov

    07/28/2022, 12:43 AM
    yep, thank you for your help
  • s

    smortex

    07/28/2022, 12:44 AM
    It is supposed to be a drop-in replacement, so I would not expect too much trouble… but there is only one way to be sure… 🙂
  • a

    Andy Fry

    07/28/2022, 12:47 AM
    Anybody know why I can't resolve basic facts on my puppetmaster? I'm getting the following when trying to access $facts['os']['family'] Evaluation Error: Operator '[]' is not applicable to an Undef value in blah/redis/manifests/params.pp
  • v

    vchepkov

    07/28/2022, 12:48 AM
    are you sure it's from that fact?
  • v

    vchepkov

    07/28/2022, 12:48 AM
    it doesn't show a line there, is it?
  • a

    Andy Fry

    07/28/2022, 12:49 AM
    yep, I just truncated the message. It's line 4 column 8
  • v

    vchepkov

    07/28/2022, 12:49 AM
    hmm, then check what do you get by
    facter os
  • a

    Andy Fry

    07/28/2022, 12:50 AM
    facter os gives the full gamut of information I'd expect
  • v

    vchepkov

    07/28/2022, 12:51 AM
    yet another weirdness
  • a

    Andy Fry

    07/28/2022, 12:52 AM
    however when I run puppet facts show os doesn't give me any of the operating system info
  • v

    vchepkov

    07/28/2022, 12:53 AM
    lovely, I was about to suggest
    puppet apply -e 'notice($facts[os])'
1...111112113...428Latest