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

    runlolarun

    08/04/2023, 6:31 PM
    Hmm okay. I was trying to figure out if i should add the latest redis module to Puppetfile or the one listed in metadata.json. Latest redis module is newer then what’s asked for in metadata.json. Hope i’m making sense.
  • v

    VoxBot

    08/04/2023, 6:32 PM
    you should add the module, with a version that matches the version
  • r

    runlolarun

    08/04/2023, 6:34 PM
    Okay, thank you
  • y

    Yury Bushmelev

    08/04/2023, 6:47 PM
    πŸŽ‰ erb2epp can rewrite
    .each do |k,v|
    to
    .each |k,v| {
    now!
    🦜 1
  • y

    Yury Bushmelev

    08/04/2023, 6:47 PM
    working on prepending the variables with
    $
  • y

    Yury Bushmelev

    08/04/2023, 6:47 PM
    ewoud: I’m going to update the latest PR with another set of changes as it’s not merged anyway πŸ™‚
  • y

    Yury Bushmelev

    08/04/2023, 6:48 PM
    code is weird! because I can write a C program in any language! πŸ˜„
  • y

    Yury Bushmelev

    08/04/2023, 6:48 PM
    but at least someone can improve it after
  • b

    binford2k

    08/04/2023, 6:49 PM
    @Yury Bushmelev and my cat can write valid perl by walking across the keyboard!
    πŸ‘πŸ» 1
  • p

    Pat Riehecky

    08/04/2023, 6:52 PM
    Reminds me of the eternal question, did I write valid lisp, or is the
    )
    key on my keyboard stuck
  • j

    jplindquist

    08/04/2023, 9:06 PM
    πŸ‘‹ We're starting to look into migrating (finally) from an older deprecated module ( example42 / puppet-network ) to puppet-network, and was looking through recent issues and changes, and saw that
    puppet-boolean
    is a required module but has been recently deprecated. It seems there are issues with setting
    onboot
    to
    yes|no
    and it always insists on setting it to
    true|false
    . The
    puppet-boolean
    module seems like it was used just for comparison of those truthy values, but is there a way to set an actual string for things like
    onboot
    and
    hotplug
    so they're
    yes|no
    vs
    true|false
    . Some of the RedHat network scripts do strict comparison on things being
    no
    for example, so not being able to set these properly is causing some strain while we migrate πŸ˜•
  • b

    bastelfreak

    08/04/2023, 9:07 PM
    @jplindquist I recommend using systemd-networkd, everything else is painful or not properly maintained
    looking 1
    πŸ’― 1
  • k

    kenyon

    08/04/2023, 9:09 PM
    with our puppet-systemd module, of course.
  • d

    Dr Bunsen Honeydew

    08/04/2023, 9:09 PM
    See the
    puppet-systemd
    module at https://forge.puppet.com/puppet/systemd?src=slack&channel=voxpupuli
  • j

    jplindquist

    08/04/2023, 9:09 PM
    Looking into that, the puppet-network one was the "recommended" one, so here I am πŸ˜›
  • d

    Dr Bunsen Honeydew

    08/04/2023, 9:09 PM
    See the
    puppet-network
    module at https://forge.puppet.com/puppet/network?src=slack&channel=voxpupuli
  • b

    bastelfreak

    08/04/2023, 9:10 PM
    I dont recommend the network module :)
    πŸ’― 2
  • j

    jplindquist

    08/04/2023, 9:10 PM
    TIL
  • j

    jplindquist

    08/04/2023, 9:10 PM
    Let me look what's involved with this vs. the older network-scripts way of managing things
  • j

    jplindquist

    08/04/2023, 9:11 PM
    Parsing through it now
  • b

    bastelfreak

    08/04/2023, 9:11 PM
    the network module is as old and fragile as network-scripts
    lol 1
  • b

    bastelfreak

    08/04/2023, 9:11 PM
    systemd-networkd provides an ini format for managin network settings that works on every modern OS
  • b

    bastelfreak

    08/04/2023, 9:12 PM
    and not just RHEL or just debian
  • j

    jplindquist

    08/04/2023, 9:12 PM
    Noice
  • k

    kenyon

    08/04/2023, 9:12 PM
    here is an example, I manage my home network router and other devices with systemd-networkd and puppet-systemd: https://gitlab.com/kenyon/puppet/-/blob/9361e341260fc1397b5c89e9855d5f0e928b4a6b/data/nodes/router.kenyonralph.com.yaml#L63
  • b

    bastelfreak

    08/04/2023, 9:12 PM
    and since you have systemd anyway, no matter if you like it or not, you can just use it
  • i

    Infraded

    08/04/2023, 9:13 PM
    It is a bigger move than just the module change though, changing the whole "what configures the network" mechanism. Worth pointing out
    this 1
  • j

    jplindquist

    08/04/2023, 9:13 PM
    This will be a bigger change than what I was originally planning for
  • b

    bastelfreak

    08/04/2023, 9:13 PM
    We are good at introducing changes
  • k

    kenyon

    08/04/2023, 9:14 PM
    here is the common config for machines with Ethernet and DHCP https://gitlab.com/kenyon/puppet/-/blob/9361e341260fc1397b5c89e9855d5f0e928b4a6b/data/kernel/Linux.yaml#L132
1...573574575...648Latest