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

    VoxBot

    03/09/2023, 7:26 PM
    we use that in other modules with the file resource
  • v

    VoxBot

    03/09/2023, 7:26 PM
    bird?
  • a

    Alex Fisher

    03/09/2023, 7:27 PM
    I'd still use
    parsejson
    from stdlib instead. Better to know at compile time than apply time.
  • v

    VoxBot

    03/09/2023, 7:27 PM
    https://github.com/voxpupuli/puppet-bird/blob/master/manifests/init.pp#L183-L192
  • v

    VoxBot

    03/09/2023, 7:28 PM
    that's nice to catch invalid json. but the verification during apply time checks for the required json attributes and whatever the tool expects
  • v

    voxel

    03/09/2023, 7:28 PM
    more or less a combination of both would fit best..
  • a

    Alex Fisher

    03/09/2023, 7:29 PM
    unless $input.parsejson(undef) { fail('custom error message') }
  • a

    Alex Fisher

    03/09/2023, 7:31 PM
    If you've got a validate command that understands the json in the context of your application then you could use that too, but whenever there's an easy way to fail at compile time, that's the way to go IMO.
    👍 1
  • v

    voxel

    03/09/2023, 9:26 PM
    can i get a review for https://github.com/voxpupuli/puppet-varnish/pull/14 please
  • v

    voxel

    03/09/2023, 9:26 PM
    can i get a review for https://github.com/voxpupuli/puppet-varnish/pull/14 please
  • v

    voxel

    03/09/2023, 9:30 PM
    @bastelfreak ty
    ❤️ 1
  • s

    Slackbot

    03/09/2023, 10:52 PM
    This message was deleted.
    😁 1
    s
    c
    r
    • 4
    • 4
  • s

    Slackbot

    03/10/2023, 8:58 AM
    This message was deleted.
    s
    • 2
    • 1
  • r

    Robert Waffen

    03/10/2023, 8:58 AM
    @bastelfreak after merging https://github.com/voxpupuli/beaker-docker/pull/84 what has to be done to release the gem in a new version?
  • v

    VoxBot

    03/10/2023, 12:47 PM
    https://github.com/puppetlabs/puppetlabs-stdlib/pull/1298 anyone knows what the valid data type of file's content attribute should be?
  • y

    Yury Bushmelev

    03/10/2023, 1:47 PM
    Is there Binary type? I’d expect to manage binary files as well
  • v

    VoxBot

    03/10/2023, 1:48 PM
    https://www.puppet.com/docs/puppet/7/lang_data_binary.html
  • v

    VoxBot

    03/10/2023, 1:51 PM
    lol just left that comment
  • s

    Slackbot

    03/10/2023, 3:58 PM
    This message was deleted.
    v
    l
    c
    • 4
    • 3
  • v

    VoxBot

    03/10/2023, 4:15 PM
    morning
  • b

    bastelfreak

    03/10/2023, 4:21 PM
    @Robert Waffen someone needs to approve https://github.com/voxpupuli/beaker-docker/pull/91
    👍 1
  • b

    bastelfreak

    03/10/2023, 4:21 PM
    @Robert Waffen someone needs to approve https://github.com/voxpupuli/beaker-docker/pull/91
  • c

    canihavethisone

    03/12/2023, 2:40 AM
    Hi, when using the puppet/network module it always fails on the first few runs unless I execute
    puppet generate types
    on the server first, after installing the module. The error I get is:
    Copy code
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_config: Could not autoload puppet/provider/network_config/interfaces: no such file to load -- puppetx/filemapper (file: /etc/puppetlabs/code/environments/production/modules/network/manifests/init.pp, line: 79, column: 28)
    It usually take 3 or so runs on the agents to come good. 2 questions: • can I fix this at my end or should this be reported as a bug (though there are a lot of issues on the github page, perhaps the module is becoming abandonware??) I can't imagine I am the only person experiencing this issue.... • what does
    puppet generate types
    actually do, and why does it fix the issue? Reading https://www.puppet.com/docs/puppet/7/man/generate.html doesn't really help me understand as it just says
    Generates definitions for custom resource types using Puppet code
  • d

    Dr Bunsen Honeydew

    03/12/2023, 2:40 AM
    See the
    puppet-network
    module at https://forge.puppet.com/puppet/network?src=slack&channel=voxpupuli
  • c

    canihavethisone

    03/12/2023, 2:41 AM
    Hi, when using the puppet/network module it always fails on the first few runs unless I execute
    puppet generate types
    on the server first, after installing the module. The error I get is:
    Copy code
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Virtual Query, Could not autoload puppet/type/network_config: Could not autoload puppet/provider/network_config/interfaces: no such file to load -- puppetx/filemapper (file: /etc/puppetlabs/code/environments/production/modules/network/manifests/init.pp, line: 79, column: 28)
    It usually take 3 or so runs on the agents to come good. 2 questions: • can I fix this at my end or should this be reported as a bug (though there are a lot of issues on the github page, perhaps the module is becoming abandonware??) I can't imagine I am the only person experiencing this issue.... • what does
    puppet generate types
    actually do, and why does it fix the issue? Reading https://www.puppet.com/docs/puppet/7/man/generate.html doesn't really help me understand as it just says
    Generates definitions for custom resource types using Puppet code
  • b

    bastelfreak

    03/12/2023, 2:46 AM
    • the module is quite old and I recommend using systemd-networkd instead (which can be configured with our puppet/systemd module) • if you deploy your code with r10k, it has an option to generate the types after each deployment • If you don't deploy with r10k, you should • are you mising the filemapper module?
  • b

    bastelfreak

    03/12/2023, 2:51 AM
    the
    generate types
    generates a kind of class header
  • b

    bastelfreak

    03/12/2023, 2:51 AM
    it's helpful for the environment isolation (having multiple environments with the same module but in different versions)
  • c

    canihavethisone

    03/12/2023, 2:55 AM
    @bastelfreak thanks for quick reply! • I know that the module is old, and its usefulness becoming outdated due to network-scripts being optional in CentOS 8 and not at all in CentOS 9 (I use CentOS in my envs), however while I do have a custom class to switch to networkd (as we have discussed elsewhere) I need to continue to support network-scripts for the meantime • I prep and deploy to physically different environment, so using R10k directly is not feasible, though I can add the
    puppet generate types
    command in my deploy script • I do have the puppet/filemapper module installed, and the issue self-corrects after a few runs, so it seems like a resource actualising/timing thing? I have confirmed this behaviour in different settings • Thanks for adding info for what
    generate types
    does, but I'm still unclear on why it solves the problem and allows successful runs from the first time
  • c

    canihavethisone

    03/12/2023, 2:56 AM
    @bastelfreak thanks for quick reply! • I know that the module is old, and its usefulness becoming outdated due to network-scripts being optional in CentOS 8 and not at all in CentOS 9 (I use CentOS in my envs), however while I do have a custom class to switch to networkd (as we have discussed elsewhere) I need to continue to support network-scripts for the meantime • I prep and deploy to physically different environment, so using R10k directly is not feasible, though I can add the
    puppet generate type
    command in my deploy script • I do have the puppet/filemapper module installed, and the issue self-corrects after a few runs, wo it seems like a resource actualising/timing thing? • Thanks for adding info for what
    generate types
    does, but I'm still unclear on why it solves the problem and allows successful runs from the first time
1...352353354...648Latest