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

    VoxBot

    07/04/2023, 7:17 PM
    I dont think 15min is too bad. we probably should not spend too much time for the nginx spec files. but converting more templates from erb to epp in our modules and adding a global cache in rspec-puppet-facts is probably a good idea
  • v

    VoxBot

    07/04/2023, 7:19 PM
    ewoud: any chance you can revisit https://github.com/voxpupuli/rspec-puppet-facts/pull/124
  • v

    VoxBot

    07/04/2023, 7:19 PM
    bastelfreak: https://github.com/voxpupuli/puppet-nginx/pull/1565 is one way to speed things up
  • v

    VoxBot

    07/04/2023, 7:20 PM
    you can see it took 7.6 seconds to load and that's the mostly the rspec-puppet-facts overhead
  • v

    VoxBot

    07/04/2023, 7:23 PM
    and I don't see myself having time for that soon :(
  • v

    VoxBot

    07/04/2023, 7:46 PM
    ewoud: now that we have money we can just outsource stuff like that to people that are smarter!
  • v

    VoxBot

    07/04/2023, 7:47 PM
    or people that just have time
  • y

    Yury Bushmelev

    07/04/2023, 7:47 PM
    🤔
  • v

    VoxBot

    07/04/2023, 7:48 PM
    yuri just volunteered
  • v

    VoxBot

    07/04/2023, 7:48 PM
    *yury
  • y

    Yury Bushmelev

    07/04/2023, 7:48 PM
    :-D
  • v

    VoxBot

    07/04/2023, 7:48 PM
    we could also offer a bounty
  • y

    Yury Bushmelev

    07/04/2023, 7:48 PM
    I can spend some time migrating erb to epp maybe
  • v

    VoxBot

    07/04/2023, 7:49 PM
    perfect <3
  • y

    Yury Bushmelev

    07/04/2023, 7:49 PM
    I got a well-paid full-time job.. which is nice but now I don’t have enough time for all the interesting things :)
  • v

    VoxBot

    07/04/2023, 7:50 PM
    I wonder if someone could write a basic erb2epp script
  • y

    Yury Bushmelev

    07/04/2023, 7:50 PM
    But anyway I’ll try to have a look on templates in the nginx module this weekend
  • v

    VoxBot

    07/04/2023, 7:50 PM
    perhaps even extract all variables used and define them automatically with the data type Any
  • v

    VoxBot

    07/04/2023, 7:51 PM
    interesting idea
  • v

    VoxBot

    07/04/2023, 7:55 PM
    Temple:ERB:Parser can parse an ERB file, so that would be a start
  • v

    VoxBot

    07/04/2023, 7:55 PM
    ewoud:

    https://x0.at/4hY_.jpg▾

    :D
  • v

    VoxBot

    07/04/2023, 7:56 PM
    not a script, but still scary how good the response is
  • v

    VoxBot

    07/04/2023, 7:57 PM
    indeed
  • v

    VoxBot

    07/04/2023, 8:19 PM
    so I took a quick stab at it and https://gist.github.com/ekohl/28443e6ba178c931bb69285e976568eb is what I came up with
  • v

    VoxBot

    07/04/2023, 8:20 PM
    looks like it's generating some bad things though :P
  • v

    VoxBot

    07/04/2023, 8:21 PM
    but if you took a ruby parser to the dynamic parts and rewrite it there in an AST you could maybe do cooler things
  • v

    VoxBot

    07/04/2023, 8:25 PM
    bastelfreak: I did a trivial rebase, which turned out to apply cleanly
  • v

    VoxBot

    07/04/2023, 8:25 PM
    awesome, thanks
  • b

    bastelfreak

    07/04/2023, 8:26 PM
    @Yury Bushmelev maybe you can give that a try
    👍🏻 1
  • v

    VoxBot

    07/04/2023, 8:28 PM
    if we say that asking for version x.y.z should strictly return facter versions <= x.y.z then I think it's safe to merge, but I think it implies we must update ext/puppet_agent_components.json quite regularly
1...539540541...647Latest