https://www.puppet.com/community logo
Join Slack
Powered by
# office-hours
  • b

    bastelfreak

    04/26/2022, 5:24 PM
    i have that in my site.pp
  • j

    josh

    04/26/2022, 5:28 PM
    see the "Custom facts" entry in https://puppet.com/docs/puppet/6/plugins_in_modules.html#module_plugin_types
  • j

    josh

    04/26/2022, 5:29 PM
    Also I have stdlib installed in my environment, so I can evaluate the
    service_provider
    fact as:
    Copy code
    $ bundle exec puppet apply -e 'notice($service_provider)'
    Notice: Scope(Class[main]): systemd
  • j

    josh

    04/26/2022, 5:29 PM
    Since I'm not running as root, puppet loads the fact from
    ~/.puppetlabs/etc/code/environments/production/modules/stdlib/lib/facter/service_provider.rb
  • j

    josh

    04/26/2022, 5:30 PM
    Also you may have a typo in
    dataceter.rb
  • r

    Robert Emanuele

    04/26/2022, 5:31 PM
    why yes… yes i do 😐
  • b

    bastelfreak

    04/26/2022, 5:33 PM
    interesting, so I do not need my hack anymore? I think for puppet 4 or 5 it was required. or maybe only for types/providers
  • b

    bastelfreak

    04/26/2022, 5:34 PM
    @josh do you habe some thoughts on speeding up pluginsync? I think in the moment the agent has one http session and downloads files one after another? fetching them in parallel could be easy to inplement but ddos the puppetserver
  • j

    josh

    04/26/2022, 5:39 PM
    I would expect the
    libdir
    (the directory where the agent downloads files to) to be added to the Ruby
    $LOAD_PATH
    when running
    puppet apply
  • j

    josh

    04/26/2022, 5:41 PM
    I'd also expect
    puppet apply
    to be able to load custom facts from modules in a specific environment, e.g.
    puppet apply --environment dev
    should load custom facts from
    $codedir/environments/dev/modules/*/lib/facter/*.rb
  • j

    josh

    04/26/2022, 5:45 PM
    About pluginsync, the main issue is puppetserver fileserving is handled in JRuby, so the server must acquire a JRuby instance to handle each
    file_content
    request. It just doesn't scale as the number of files and agents increases.
  • b

    bastelfreak

    04/26/2022, 5:53 PM
    yep. we noticed great improvements when we added an nginx in front of it that served the static files
  • b

    bastelfreak

    04/26/2022, 5:54 PM
    but implementing logic that creates a .tar.gz sounds rather complex
  • j

    josh

    04/26/2022, 5:59 PM
    yeah I'm not convinced "download a tarball" is the way to go... It solves one problem but introduces others.
  • d

    Dr Bunsen Honeydew

    04/26/2022, 6:02 PM
    indeed Next up is πŸ§‘β€πŸ« Bolt in 4 hours
  • j

    josh

    04/26/2022, 6:04 PM
    Also wanted to mention we added agent support for macOS 12 (x86_64) support recently and Windows 11 is on the way. Ubuntu 22.04 should land some time after. We've been delayed on platform additions due to on-going data center migration. Always a good time.
    πŸ‘ 3
  • j

    josh

    04/26/2022, 6:05 PM
    Alright folks that's a wrap, see you in two weeks!
  • r

    Robert Emanuele

    04/26/2022, 6:05 PM
    Thanks!
  • d

    Dr Bunsen Honeydew

    04/26/2022, 9:45 PM
    fry dancing πŸ§‘β€πŸ« Bolt is about to start up in 15 minutes
  • c

    Cas Donoghue

    04/26/2022, 10:03 PM
    Welcome to bolt office hours! boltymcboltface bolt boltymcbeardface Lets talk bolt
  • l

    Lumiere

    04/26/2022, 10:19 PM
    on behalf of @bastelfreak πŸ˜„ is there a timeline on Ruby3 for bolt?
  • s

    Slackbot

    04/26/2022, 10:20 PM
    This message was deleted.
    c
    b
    • 3
    • 2
  • t

    Tom

    04/26/2022, 10:21 PM
    @Lumiere Just need some changes to get made in r10k before we can remove the version restriction in Bolt. No timeline on when those will get in, but we have eyes on the PRs. πŸ™‚
  • t

    Tom

    04/26/2022, 10:23 PM
    Also, we'll still be shipping Ruby 2.7 with Bolt, so it'll only affect gem installs (ie you can install the bolt gem on systems with Ruby 3 installed)
  • l

    Lumiere

    04/26/2022, 10:23 PM
    it'd be gem installs and I assume the Arch packages that he works on...
    πŸ‘ 2
    πŸ’Ž 2
  • d

    Dr Bunsen Honeydew

    04/26/2022, 11:02 PM
    allthethings Next up is πŸ§‘β€πŸ«Puppet Forge in 43 hours
  • b

    bastelfreak

    04/27/2022, 7:21 AM
    As a note: main branch of r10k works on Ruby 3.0/3.1 since last night
    πŸŽ‰ 3
  • y

    Yury Bushmelev

    04/27/2022, 7:23 AM
    missed the puppet releases office hours.. 😞 I'd like to raise https://tickets.puppetlabs.com/browse/PUP-11432 there..
  • d

    Dr Bunsen Honeydew

    04/28/2022, 5:45 PM
    the more you know πŸ§‘β€πŸ«Puppet Forge is about to start up in 15 minutes
  • b

    binford2k

    04/28/2022, 6:01 PM
    Hello friends, what's new today?
    πŸ‘‹ 1
12345...78Latest