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

    VoxBot

    04/07/2023, 11:29 AM
    nods
  • v

    VoxBot

    04/07/2023, 11:29 AM
    so shall it be!
  • v

    VoxBot

    04/07/2023, 11:34 AM
    https://github.com/voxpupuli/puppet-jenkins/pull/1065 I kind of expect it to fail, given the plugins are just a pain to maintain but I just need the puppet/systemd version limit bump
  • y

    Yury Bushmelev

    04/07/2023, 11:36 AM
    augeas modules need some rubocop checks too.. my VSCodium complains a lot
  • y

    Yury Bushmelev

    04/07/2023, 11:36 AM
    so my vote is for voxpupuli-rubocop gem
  • y

    Yury Bushmelev

    04/07/2023, 11:37 AM
    (or maybe voxpupuli-rubocop-config)
  • v

    VoxBot

    04/07/2023, 11:39 AM
    I think its fine to release it anyways
  • y

    Yury Bushmelev

    04/07/2023, 11:40 AM
    yes, but I’d add a WARNING there
  • y

    Yury Bushmelev

    04/07/2023, 11:41 AM
    let me confirm it’s really broken on P7
  • y

    Yury Bushmelev

    04/07/2023, 11:41 AM
    we can release it for P6 safely though (with limiting Puppet version to <7)
  • y

    Yury Bushmelev

    04/07/2023, 11:42 AM
    aha.. so there is no acceptance test for multiple sysctl{} changing the same /etc/sysctl.conf.. let me add one to check it’s broken there as well 😄
  • y

    Yury Bushmelev

    04/07/2023, 11:45 AM
    forgot about articles in English 😄
  • y

    Yury Bushmelev

    04/07/2023, 11:52 AM
    hmm.. it works fine for /etc/sysctl.conf 🤔 maybe it’s broken just for non-existent file? checking..
  • v

    VoxBot

    04/07/2023, 11:56 AM
    a warning sounds like a good thing
  • y

    Yury Bushmelev

    04/07/2023, 12:00 PM
    yes, it works fine when file exists before applying it 1st time
  • y

    Yury Bushmelev

    04/07/2023, 12:00 PM
    ewoud: any idea what might be broken wrt this new info?
  • v

    VoxBot

    04/07/2023, 12:01 PM
    oh, that's interesting - so the problem is that /etc/sysctl.conf doesn't exist before the run starts and only when it does it's created?
  • y

    Yury Bushmelev

    04/07/2023, 12:01 PM
    Copy code
    file { '/etc/sysctl.d/20-fs.conf':
                    replace  => false,
                    content => '',
                  }
    
                  sysctl { 'fs.nr_open':
                    value  => '100001',
                    target => '/etc/sysctl.d/20-fs.conf'
                  }
    
                  sysctl { 'fs.inotify.max_user_watches':
                    value  => '8193',
                    target => '/etc/sysctl.d/20-fs.conf'
                  }
  • y

    Yury Bushmelev

    04/07/2023, 12:01 PM
    this works fine
  • y

    Yury Bushmelev

    04/07/2023, 12:01 PM
    remove
    file
    and it breaks
  • y

    Yury Bushmelev

    04/07/2023, 12:02 PM
    I’ll add to PR too
  • v

    VoxBot

    04/07/2023, 12:02 PM
    you don't need to manage content, just ensure => file is sufficient
  • y

    Yury Bushmelev

    04/07/2023, 12:02 PM
    I was too lazy to read the file resource doc 😄
  • y

    Yury Bushmelev

    04/07/2023, 12:02 PM
    I was too lazy to read the file resource doc 😄
  • v

    VoxBot

    04/07/2023, 12:03 PM
    could it be that augeas can't/doesn't create the file if needed?
  • y

    Yury Bushmelev

    04/07/2023, 12:03 PM
    I’d expect race condition again.. so it creates file on 1st sysctl change but overrides it with next one maybe.. (just guessing)
  • y

    Yury Bushmelev

    04/07/2023, 12:04 PM
    I’d craft some corner cases but it’s going to be time consuming..
  • y

    Yury Bushmelev

    04/07/2023, 12:04 PM
    it calls augeas binary internally, right?
  • v

    VoxBot

    04/07/2023, 12:05 PM
    I think it uses the ruby library, so probably not the binary
  • y

    Yury Bushmelev

    04/07/2023, 12:05 PM
    ah.. maybe.. it was looking for headers IIRC
1...406407408...648Latest