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

    jhoblitt

    05/19/2022, 5:58 PM
    @josh puppet 8? 🙂
  • j

    josh

    05/19/2022, 5:58 PM
    you could add that in 7 since technically it's opt-in
  • a

    Alex Fisher

    05/19/2022, 6:01 PM
    Is that a typo? Or were you actually suggesting adding
    Puppet::Property::Bool
    as a working replacement to
    Puppet::Property::Boolean
    ?
  • a

    Alex Fisher

    05/19/2022, 6:02 PM
    https://github.com/puppetlabs/puppet/blob/main/lib/puppet/property/boolean.rb is 'used' in plenty of places even though it doesn't work.
  • a

    Alex Fisher

    05/19/2022, 6:02 PM
    https://github.com/puppetlabs/puppet/blob/main/lib/puppet/property/boolean.rb is 'used' in plenty of places even though it doesn't work.
  • j

    jhoblitt

    05/19/2022, 6:04 PM
    mangling bools to symbols alone isn't enough as you end up with
    Copy code
    Notice: /Stage[main]/Profile::Core::Puppet_master/Foreman_global_parameter[this-is-a-test]/value: value changed false to 'false' (corrective)
  • j

    josh

    05/19/2022, 6:08 PM
    ah not a typo, we'd need to use something other than
    Puppet::Property::Boolean
    👍 1
  • j

    jhoblitt

    05/19/2022, 6:08 PM
    ::Poolean
  • j

    jhoblitt

    05/19/2022, 6:08 PM
    ::Foolean
  • a

    Alex Fisher

    05/19/2022, 6:08 PM
    Your provider probably also needs to produce symbols when fetching the current state.
  • a

    Alex Fisher

    05/19/2022, 6:09 PM
    @josh Sounds good then. That should definitely be non breaking. (tempting fate)
  • j

    jhoblitt

    05/19/2022, 6:10 PM
    @tvaughan's hack seems to work.
    (@should - [true,:true]).empty?
    is blowing my mind
  • j

    jhoblitt

    05/19/2022, 6:12 PM
    @tvaughan's hack seems to work.
    (@should - [true,:true]).empty?
    is blowing my mind
  • j

    josh

    05/19/2022, 6:14 PM
    Also https://tickets.puppetlabs.com/browse/PUP-8442 is the same issue, but for parameters
  • j

    josh

    05/19/2022, 6:15 PM
    We tried fixing it, but had to revert because it broke the vcsrepo module (it starting defaulting to
    force => true
    )
  • j

    jhoblitt

    05/19/2022, 6:51 PM
    Hmm. Why doesn't this work?
    Copy code
    require 'puppet/property/boolean'
    
    module PuppetX
      module Foreman
        module Property
          class Foolean < Puppet::Property::Boolean
            def should
              return nil unless defined?(@should)
              (@should - [true,:true]).empty?
            end
    
            def insync?(is)
              is == should
            end
          end
        end
      end
    end
    and
    Copy code
    newproperty(:value, boolean: true, parent: PuppetX::Foreman::Property::Foolean) do
        desc 'Parameter value'
      end
  • j

    jhoblitt

    05/19/2022, 7:00 PM
    must be something to do with #genclass/#genthing
  • j

    jhoblitt

    05/19/2022, 7:05 PM
    ARGH, it doesn't transition true -> false when migrated back to the newproperty block arg either. I swore I tested that as working.
  • g

    genebean

    05/19/2022, 8:12 PM
    Is there any desire from peeps here for a module to manage Falco? Asking because I have been working on reviving one that seem to have been abandoned and am trying to figure out where to have it live
  • v

    VoxBot

    05/19/2022, 8:24 PM
    if you want to put some love into the module you could do that in our namespace
  • v

    VoxBot

    05/19/2022, 8:24 PM
    and utilize our modulesync/ci setup
  • v

    VoxBot

    05/19/2022, 8:25 PM
    Thanks bastelfreak - I just wasn't sure how niche this was
  • a

    Alex Fisher

    05/19/2022, 8:34 PM
    I think as long as the person wanting it migrated is able and willing to see the process through to a release, it doesn't matter too much if there isn't a huge amount of interest.
  • g

    genebean

    05/19/2022, 8:36 PM
    @Alex Fisher That person is me. The old code was in a subdirectory of a larger repo and a version from 3 years ago is on the Forge... I exported the code to a new repo and have been working on it there
  • g

    genebean

    05/19/2022, 8:40 PM
    That part all started when I was trying to deploy a patched version of the code via git and couldn't due to it being embedded in the other repo. I have a couple of PRs open on the original and will see if there is any traction there. If so, I will likely ask them about marking the abandoned one as superseded by the new one I am fixing up.
  • j

    jhoblitt

    05/19/2022, 10:07 PM
    @genebean this is a puppet mode to install the kernel driver?
  • s

    Slackbot

    05/19/2022, 11:51 PM
    This message was deleted.
    j
    g
    • 3
    • 5
  • v

    VoxBot

    05/20/2022, 6:55 AM
    can I get a final review for https://github.com/voxpupuli/puppet-augeasproviders_apache/pull/11 ? I think this is ready now and most of the changes can be applied to all the augeasproviders modules
  • v

    VoxBot

    05/20/2022, 7:16 AM
    And can I get some eyes on https://github.com/voxpupuli/hiera-eyaml/pull/329 ? CI fails when we switch from Puppet 6 to 7, that's required to test hiera-eyaml on newer ruby
  • v

    VoxBot

    05/20/2022, 9:42 AM
    e-woud: are you around? :)
1...414243...648Latest