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

    VoxBot

    07/18/2022, 9:17 AM
    we once had a hack to read a yaml file in, which method did that use? that worked fine back in the days
  • v

    VoxBot

    07/18/2022, 9:19 AM
    I'm really confused because I'm sure I used this code before and it worked
  • v

    VoxBot

    07/18/2022, 9:20 AM
    but now I'm wondering if it really did or if we just weren't using it
  • v

    VoxBot

    07/18/2022, 9:22 AM
    so my current theory is that Puppet/Facter doesn't care about symbols/strings and only if you use another custom fact in your custom fact you hit this
  • v

    VoxBot

    07/18/2022, 9:28 AM
    right, I'll think more about this after lunch
  • v

    VoxBot

    07/18/2022, 11:28 AM
    ok, I'm reasonably sure now that the code I wrote then for the systemd custom fact never worked and I never needed it before
  • v

    VoxBot

    07/18/2022, 11:30 AM
    I know a lot of modules use it,but we also often set it explicitly in the let facts block
  • v

    VoxBot

    07/18/2022, 11:30 AM
    maybe we always set is there
  • v

    VoxBot

    07/18/2022, 11:30 AM
    well, this code isn't used in VP (yet)
  • v

    VoxBot

    07/18/2022, 11:31 AM
    https://github.com/voxpupuli/modulesync_config/pull/693 would do that but I never got around to pushing for it
  • v

    VoxBot

    07/18/2022, 11:32 AM
    and recently I did migrate theforeman modules but in the one module that does use it CI was turned of (thanks GHA for disabling workflows with cron after 60 days)
  • v

    VoxBot

    07/18/2022, 11:34 AM
    mhm
  • v

    VoxBot

    07/18/2022, 11:35 AM
    we deleted the yaml file that mocked facts, I thought we replaced it with add_mocked_facts
  • v

    VoxBot

    07/18/2022, 11:37 AM
    https://github.com/voxpupuli/modulesync_config/pull/522 ah here
  • v

    VoxBot

    07/18/2022, 11:37 AM
    yes, the nuance is that you end up with (in Ruby) facts[:osfamily] and facts['my_custom_fact']
  • v

    VoxBot

    07/18/2022, 11:37 AM
    ah we only added three facts, not the systemd one
  • v

    VoxBot

    07/18/2022, 11:38 AM
    and my code checks facts[:my_custom_fact] - which fails
  • v

    VoxBot

    07/18/2022, 11:38 AM
    I think it may be time for a rspec-puppet-facts 3.0 which cleans this up, but not today
  • v

    VoxBot

    07/18/2022, 12:05 PM
    https://github.com/voxpupuli/voxpupuli-test/pull/81 I think that documents today's journey
  • v

    VoxBot

    07/18/2022, 12:10 PM
    approved it
  • v

    VoxBot

    07/18/2022, 12:10 PM
    can I get a review for https://github.com/voxpupuli/puppet-python/pull/636
  • b

    bastelfreak

    07/18/2022, 12:13 PM
    @Alex Fisher do you want to do new releases for the puppet-lint plugins you updated?
  • a

    Alex Fisher

    07/18/2022, 12:15 PM
    yeah. Will raise PRs for new releases.
  • v

    vchepkov

    07/18/2022, 1:04 PM
    It seems python 6.3 should have been v7, since it introduces incompatible change. It starts managing venv package and removes it by default.
  • v

    vchepkov

    07/18/2022, 1:06 PM
    also, this logic is questionable
    Copy code
    unless $facts['os']['name'] == 'CentOS' {
    imho, should be driven by hiera
  • b

    bastelfreak

    07/18/2022, 1:07 PM
    mhm, was there a PR with the wrong label?
  • v

    vchepkov

    07/18/2022, 1:08 PM
    enhancement
  • l

    Lumiere

    07/18/2022, 4:44 PM
    gotta love that redhat has removed lsb_release support
    🙈 1
  • v

    VoxBot

    07/18/2022, 5:20 PM
    what was the point of it anyway?
  • l

    Lumiere

    07/18/2022, 5:21 PM
    it provided a standard way to get os info
1...104105106...648Latest