• ColonelThirtyTwo@pawb.social
    link
    fedilink
    arrow-up
    46
    arrow-down
    3
    ·
    edit-2
    16 hours ago

    “Keep it simple” says the project that decided it would be great to program in YAML…

    I’ve tried using it to manage a few home servers and parameterizing anything was painful and boilerplate-ridden

    • tzrlk@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      10 hours ago

      Except it isn’t actually YAML you’re writing, it’s a jinja2 string template that parses to YAML because the expressions they came up with ended up not being sufficient.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 hours ago

        Mm, I love stacking weird formats. How many backslashes do I need for a regular expression to work right? 🥵

    • Funwayguy@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      15 hours ago

      Jist wait until you have to start fucking around with multiple incompatible versions of python for different targets.

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        fucking around with multiple incompatible versions of python

        They’re being treated for PTSD in solaris-land.

        Yeah. I said solaris.

        • Lichtblitz@discuss.tchncs.de
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          10 hours ago

          No. Because the python version of the host and the target server must loosely match up. Otherwise you get some cryptic error messages in some unexpected modules. Red Hat’s solution: just manage RHEL 9 targets from RHEL9 hosts and RHEL8 from RHEL8 hosts. There is no official way to align python versions across that major.