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

    saz

    01/31/2023, 11:13 PM
    I'm happy that I'm only running into (mainly) Ubuntu issues (rarely Debian). Maybe I should switch back to Gentoo (or maybe Arch?).
  • b

    bastelfreak

    01/31/2023, 11:21 PM
    yes!
  • b

    bastelfreak

    01/31/2023, 11:22 PM
    as an Arch Linux maintainer I support that movr
  • v

    VoxBot

    02/01/2023, 11:53 AM
    can I get a review for https://github.com/voxpupuli/json-schema/pull/478
  • v

    VoxBot

    02/01/2023, 1:20 PM
    ewoud: do you know how I can write an rspec-puppet test for a defined resource that validates the uniqueness? Basically having two instances of the defined resource at the same time
  • b

    bastelfreak

    02/01/2023, 1:28 PM
    @Alex Fisher ^ maybe you've an idea as well
  • v

    VoxBot

    02/01/2023, 1:30 PM
    bastelfreak: no, not sure and kind of busy now so no time to think about it either
  • a

    Alex Fisher

    02/01/2023, 1:39 PM
    Morning all
  • a

    Alex Fisher

    02/01/2023, 1:39 PM
    Not sure I understand the question. How could you have non unique resources in the first place?
  • b

    bastelfreak

    02/01/2023, 1:45 PM
    let's say a defined resource defines a file resource with a static name
  • b

    bastelfreak

    02/01/2023, 1:45 PM
    having one instance of that defined will work, a second will fail
  • b

    bastelfreak

    02/01/2023, 1:46 PM
    now how do I test this in a unit test
  • a

    Alex Fisher

    02/01/2023, 1:46 PM
    Maybe a precondition that declares another instance?
  • b

    bastelfreak

    02/01/2023, 1:46 PM
    good idea
  • a

    Alex Fisher

    02/01/2023, 1:47 PM
    or some modules have wrapper classes for creating multiple instances of a type, and you could test it there instead.
  • b

    bastelfreak

    02/01/2023, 1:48 PM
    ah!
  • b

    bastelfreak

    02/01/2023, 1:48 PM
    yes
  • b

    bastelfreak

    02/01/2023, 1:48 PM
    I will do that instead, thanks
  • b

    bastelfreak

    02/01/2023, 1:49 PM
    (we're hacking multiinstance support into puppetlabs/postgresql)
  • d

    Dr Bunsen Honeydew

    02/01/2023, 1:49 PM
    See the
    puppetlabs-postgresql
    module at https://forge.puppet.com/puppetlabs/postgresql?src=slack&channel=voxpupuli
  • a

    Alex Fisher

    02/01/2023, 1:49 PM
    eg. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/vhosts.pp
  • a

    Alex Fisher

    02/01/2023, 1:49 PM
    eg. https://github.com/puppetlabs/puppetlabs-apache/blob/main/manifests/vhosts.pp
  • a

    Alex Fisher

    02/01/2023, 1:50 PM
    But I wouldn't necessarily create such a class just for this purpose.
  • b

    bastelfreak

    02/01/2023, 2:06 PM
    in our case an additonal parameter in the init.pp is probably fine
  • k

    kenyon

    02/01/2023, 5:38 PM
    why do so many people merge master into their PR branch ughhhhhhhhh 😛
  • b

    bastelfreak

    02/01/2023, 5:39 PM
    because github has a 'sync fork' button
    yup 1
  • k

    kenyon

    02/01/2023, 5:39 PM
    oh.
  • b

    bastelfreak

    02/01/2023, 5:39 PM
    and an 'update branch' button I think which does a rebase as well
  • b

    bastelfreak

    02/01/2023, 5:39 PM
    eh, which does a merge, not a rebase
  • b

    bastelfreak

    02/01/2023, 5:40 PM
    and people start with github without learning git before and when I say 'please rebase' they don't relly know what I'm talking about 😞
    nodding 2
1...270271272...648Latest