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

    vchepkov

    01/30/2023, 3:47 PM
    Do you have a workaround, by any chance? I have started migrating to PE2021 and stepped on this. So far only docker running systems have been affected
  • v

    VoxBot

    01/30/2023, 4:11 PM
    if everyone ends up disabling the fact, it probably isn't a good default fact
  • v

    VoxBot

    01/30/2023, 4:13 PM
    correct
  • j

    jhoblitt

    01/30/2023, 4:13 PM
    I think we should probably disable it by default
  • j

    jhoblitt

    01/30/2023, 4:14 PM
    I have to leave my desk in about 45mins but I will PR something later today
  • j

    jhoblitt

    01/30/2023, 4:53 PM
    @ewoud @bastelfreak it will probably be after hour for you guys by the time I'm back at my desk this afternoon. Are you in favor of disabling the udev fact by default or should we back it out completely?
  • v

    VoxBot

    01/30/2023, 4:55 PM
    I'm not sure if we have a way to enable it if we do include it
  • v

    VoxBot

    01/30/2023, 4:55 PM
    I guess you could use some env var, but that's going to unreliable
  • j

    jhoblitt

    01/30/2023, 4:55 PM
    external fact
  • v

    VoxBot

    01/30/2023, 4:55 PM
    so I'm leaning to its own module
  • s

    Slackbot

    01/30/2023, 4:55 PM
    This message was deleted.
    j
    • 2
    • 1
  • v

    VoxBot

    01/30/2023, 4:55 PM
    easier to opt in for an entire environment
  • l

    Lumiere

    01/30/2023, 4:56 PM
    then a profile could ensure => present content => '' to turn it on
  • v

    VoxBot

    01/30/2023, 4:56 PM
    Lumiere: that would still mean you need 2 runs to get the fact, so if anything relies on the fact you can't converge in a single Puppet run
  • j

    jhoblitt

    01/30/2023, 4:57 PM
    yes
  • j

    jhoblitt

    01/30/2023, 4:57 PM
    the alternative is in the inverse, which would mean the first run would [always] push all the fact data
  • j

    jhoblitt

    01/30/2023, 4:58 PM
    the alternative is in the inverse, which would mean the first run would [always] push all the fact data
  • c

    csharpsteen

    01/30/2023, 5:06 PM
    There isn't a good way to push "opaque" data through. When PE bumped into this problem with the package inventory, the solution was to special-case it in the facts terminus: https://github.com/puppetlabs/puppetdb/blob/main/puppet/lib/puppet/indirector/facts/puppetdb.rb#L30-L32
  • v

    VoxBot

    01/30/2023, 5:11 PM
    in Foreman we also filter out unstable facts: https://github.com/theforeman/foreman/blob/3d600a5631927f0c9b485cd0527cc6febf0356ba/app/registries/foreman/settings/facts.rb#L3-L19
  • v

    VoxBot

    01/30/2023, 5:12 PM
    though we still have system_uptime and uptime_seconds in there because we parse it, but I wonder if that's really needed considering it's parsed in another layer
  • v

    vchepkov

    01/30/2023, 7:04 PM
    some NM or networkd settings can be needed post factum though
  • j

    jhoblitt

    01/30/2023, 9:23 PM
    @Pat Riehecky I think I'm going to revert the udev fact PR completely... Maybe move it into a udevdb mod?
  • p

    Pat Riehecky

    01/30/2023, 9:24 PM
    Ok, I can work with that
  • j

    jhoblitt

    01/30/2023, 9:24 PM
    @Pat Riehecky I think I'm going to revert the udev fact PR completely... Maybe move it into a udevdb mod?
  • j

    jhoblitt

    01/30/2023, 9:25 PM
    I suspect some sort of filtering rules are going to needed to make it generally useful.
  • s

    Slackbot

    01/30/2023, 9:25 PM
    This message was deleted.
    j
    b
    p
    • 4
    • 19
  • b

    bastelfreak

    01/30/2023, 9:32 PM
    https://github.com/voxpupuli/puppet-udevdb
  • j

    jhoblitt

    01/30/2023, 10:12 PM
    I've opened a PR to revert the udev fact. https://github.com/voxpupuli/puppet-systemd/pull/316
  • j

    jhoblitt

    01/30/2023, 10:12 PM
    I've opened a PR to revert the udev fact. https://github.com/voxpupuli/puppet-systemd/pull/316
  • j

    jhoblitt

    01/30/2023, 11:15 PM
    I've opened a 4.0.1 release PR: https://github.com/voxpupuli/puppet-systemd/pull/317
1...267268269...648Latest