jwildeboer, to github
@jwildeboer@social.wildeboer.net avatar

still doesn't support issue templates in , the way and can. Only , which is a lot less attractive. But and can do label changes in the Kanban (project) view, which can't.

elmiko, to python
@elmiko@fosstodon.org avatar

you know hacking kubernetes manifests is so much more comfortable in python... is there any drive to get a yaml processor into the python standard lib?

#python #yaml #kubernetes

tomi, to proxmox

(Link to the original blog post with a proper layout)

It’s a pity that doesn’t report CPU and other temperatures to .

I had several freezes of my old laptop that runs Proxmox due to a stuck CPU fan. I googled a bit and found an elegant solution for temperature reporting: a command_line sensor.

Nevertheless, it took several hours to configure it correctly (I forgot how to deal with ssh keys and similar).

This is the end result:

home assistant cpu temperature sensor chartThe procedure:

  1. I installed the ‘Terminal & SSH’ add-on in to home assistant.
  2. I created SSH keys, put them into /config/.ssh folder, and copied to my proxmox server. Read these instructions. I’ve put something like this in my HA Terminal addon:
$ mkdir /config/.ssh$ ssh-keygen <em># generated ssh keys and when asked, i enter the folder /root/config/.ssh</em> $ ssh-copy-id -i /root/config/.ssh/id_proxmox root@MY_PROXMOX_IP <em># copy keys to my prox server</em>$ ssh root@MY_PROXMOX_IP <em>#try out if I can log on without password prompt, then exit</em>
  1. I had to find out where my proxmox stores temperatures. I ssh’ed to my proxmox again, browsed folders and looked into files which one store temps. My AMD laptop stores it in /sys/class/thermal/thermal_zone0/temp.

It could be also …/thermal_zone1, 2, 3 or similar.

  1. Then I pulled temperature data via SSH to HA terminal:
$ ssh -i /config/.ssh/id_prox -o StrictHostKeyChecking=no -q root@YOUR_PROXMOX_IP cat /sys/class/thermal/thermal_zone0/temp

The command returned 52000.

Edited my configuration.yaml and added the sensor. This is a working code (as of Apr. 2024). I used tips from here (deprecated sensor) and here.

##################

Temperature proxmox

##################
command_line:
– sensor:
name: temperature_cpu
command: “ssh -i /config/.ssh/id_prox -o StrictHostKeyChecking=no -q root@YOUR_PROXMOX_IP cat /sys/class/thermal/thermal_zone0/temp”
value_template: “{{ value | multiply(0.001) | round(1) }}”
unit_of_measurement: “°C”

After 20 restarts of Home Assistant, it finally shows the proxmox CPU temp.

Bonus: here is a picture my homelab proxmox ‘server’ with external fans (because CPU fan is not working).

https://blog.rozman.info/wp-content/uploads/2024/04/20240415_081455-1024x576.jpgBonus #2: A hypothesis: Fediverse is causing global warming! 😉 😉

When I publish a blog post, the WordPress Activitypub plugin delivers the post to the . This causes the CPU to heat to 75C+. I know it now, because I can track its temp. in HA.

The hypothesis is confirmed.

temperature chart of the CPU, a spike is detected at blog publish time, because of activitypub pluginhttps://blog.rozman.info/proxmox-server-temperature-tracking-in-home-assistant/

#2

image/jpeg
image/png

markstos, to Ansible
@markstos@urbanists.social avatar

Today in , I'm investigating why I got alerted that my aren't running.

The first task is determine if the backups really aren't running or whether there's a problem with monitoring/alerting.

I used to set up to backup to .

I think I'll start by checking in BackBlaze to see how fresh the backups are. 🧵

markstos,
@markstos@urbanists.social avatar

🧵 The problem with my syntax seemed to be how I'd lovingly formatted some multi-line #YAML, yet it didn't get translated back into valid shell syntax. I abandoned that approach in favor of a super-log and ugly one-liner.

kancept, to python
@kancept@mastodon.social avatar

There was a time when I used to code graphics drivers. I used to love #assemblylanguage. Nowadays, I can't code my way out of a paper bag. Its been so many years and I'm just a #yaml jockey these days. I've been trying to learn #python, and while I get the basics, it just doesn't seem to gel in my head to make an app. I want to like Go, but I feel I gotta get something down like python to get to that (and to do some projects I want to do). The goal is to learn #vala, but man, I'm dying here!

rostre, to random
@rostre@emacs.ch avatar

I know that was never initially designed for configuration, but is there anything out there that actually works better for nested configuration settings? seems unsafe and easy to break, and is simple but doesn't handle the nesting well. Perhaps nested configs are just a bad idea and we should stick with ?

dolanor, to python French
@dolanor@hachyderm.io avatar

Just spent 30mn on an unknown python script.
Haven't touched python in a long while.

30 mn to experiment/discover that os.environ.get('var_name') for a bool takes 'True', 'true', but still will consider the var as string. And a if my_var that is a string with 'true' in it will pass as bool true.

I don't understand how people can be angry about yaml, and are ok with python.

Can I get those 30mn back?

#python #yaml

Linux, to ubuntu
@Linux@linuxrocks.online avatar

🔌 Netplan 1.0 ready for Ubuntu 24.04 LTS :ubuntu:

What? A network utilities management tool (for YAML config files) developed for 7 years.

◉Way back mainly for enterprise cases where network configurations required to be copied across hundreds of workstations in a whiff
◉Ifconfig can be used as always via nettools - this is extra for specific needs - not a replacement for network-manager
◉Simultaneous WPA2 & WPA3 support

Read all►https://blog.slyon.de/2024/04/04/netplan-v1-0-paves-the-way-to-stable-declarative-network-management/

chrisphan, to rust
@chrisphan@hachyderm.io avatar

Question for programmers out there: Now that serde-yaml is no longer maintained, what package should I be using to parse ?

https://github.com/dtolnay/serde-yaml/commit/3ba8462f7d3b603d832e0daeb6cfc7168a673d7a

(NOTE: This post is neither a complaint nor an invitation to complain about an individual's decision to stop providing volunteer labor in the form of maintaining his package.)

smallcircles, (edited ) to rust
@smallcircles@social.coop avatar

To vendor or to fork? That is the question.

Since #Rust Crates.io started giving #RUSTSEC warnings on the unmaintained status of #yaml-rust library, there's a bit of a panic, not in the least because 1,000's of crates depend on it.

This article by the maintainer of Insta snapshot testing tool gives a nice analogy to Collateralized Debt Obligations (CDO's) with considerations on whether you should fork or might vendor the lib.

https://lucumr.pocoo.org/2024/3/26/rust-cdo/

https://github.com/chyh1990/yaml-rust/issues/197

schenklklopfer, to random German
@schenklklopfer@chaos.social avatar

Auftrag: ein #YAML parsen.

Aber: ich soll keinen YAML Parser wie #yq verwenden, weil das wird dann zu #kompliziert.

Ich soll also was tun?
Selber einen YAML Parser mit viel grep, sed, awk etc. bauen? Dafür 100 Stunden brauchen und danach etwas haben was noch viel komplizierter ist und beim ersten Sonderzeichen anfängt zu brennen?

-> ich werde yq verwenden.

lambdageek, to markdown
@lambdageek@mastodon.social avatar

Today I proposed we use YAML for something at work.

I feel like I am the cause of my own ruin

#softwareEngineering #yaml #markdown

sean, to random
@sean@scoat.es avatar

I wish we didn’t do this to ourselves.

#yaml

shortridge, to random
@shortridge@hachyderm.io avatar

OH: “None of these galactic fuckheads seem to realize YAML’s a goddamn data exchange format, not the fuckin’ language of the spheres, forged by the seraphim at the dawn of time, held securely in its place of honor in this one directory that’s checked into git”

👀 hello stans

ramikrispin, (edited ) to random
@ramikrispin@mstdn.social avatar

This weekend, on Sunday afternoon non-important facts - the meaning of the YAML language abbreviation👇🏼

I always thought the YAML language abbreviation was Yet Another Markup Language, which is partially true.

The YAML language was created by Clark Evans, Ingy döt Net, and Oren Ben-Kiki in 2001. It was first named Yet Another Markup Language, as at that time, there were many other markup languages such as XML, SGML, etc. Later, in April 2002, it was renamed to YAML Ain't Markup Language.

#yaml

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

I heard you like #YAML, so I put YAML in your YAML... https://github.com/argoproj/argo-workflows/blob/a927379f761fbffe733857e7a23d69511fba90de/examples/k8s-wait-wf.yaml#L24-L34 (selected snippet is a string containing YAML)

dboehmer, to random

I just noticed that has finally registered the official "application/yaml" for at . That’s a good step! 👍

https://datatracker.ietf.org/doc/html/rfc9512

jpmens, to random
@jpmens@mastodon.social avatar

deleted_by_author

  • Loading...
  • ascherbaum,
    @ascherbaum@mastodon.social avatar

    @jpmens "a fragment identifier that is empty or that starts with "/" is to be interpreted as a JSON Pointer"

    sigh

    We get a cross-over of the baddest bugs from both #YAML and #JSON libraries.

    5am, to linux
    @5am@fosstodon.org avatar

    I'm curious to know how others version control their private configuration files / docs / wiki. For now, I've created a stack on my home network. Instead of copying the files I want to track into another folder and pushing from there, I've created hard links. Any other suggestions? @gitea

    bkoehn,
    @bkoehn@hachyderm.io avatar

    @5am I use @gitea (self hosted) and keep all my (k3s, actually) and whatnot in different projects. I use ’s op command to inject secrets into the various files. I use just to automate common tasks. It all works great.

    madargon, to devops
    @madargon@is-a.cat avatar

    Working in is not healthy for my mind. After almost 2 years I honestly regret config is not written in :blobCat_paw:

    matthew,
    @matthew@social.retroedge.tech avatar

    I'm guessing that is because a lot of DevOps orchestration and config is in - correct?

    I've considered using just to get better with

    ryguw, to apple

    On Feb 1st, 2024, released Pkl. Pronounced "pickle", it is a complete configuration scripting language, including a JSON/YAML/XML/more compiler, a language server, bunch of IDE plugins, and of course direct bindings for your favorite programming language, for quick adoption. A binding seems missing.

    I like how a Pkl config's specs and values are colocated. Always hated maintaining separate schemas for very simple configs.

    braidn, to random

    How are folks writing #api s these days and getting for (mostly) free documentation?

    Are we choosing things like: https://typespec.io or are we still hand building #yaml files for #openapi ?

    frankel, to random
    @frankel@mastodon.top avatar
    McPringle,
    @McPringle@fosstodon.org avatar

    @frankel Wrong question! I want to know, why the fuck we are using #yaml?

    davinkevin,

    @frankel just because people missed the "declarative idea" of k8s manifests.

    #YAML is simple if you just do yaml with it, no anchors, no templates... Just declarations!

    And I see the inappropriate will to "DRY", but you must accept some duplications is the way, it's better than dirty and complicated string manipulations

    PS: #Kustomize FTW

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • cubers
  • magazineikmin
  • InstantRegret
  • thenastyranch
  • Durango
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • osvaldo12
  • kavyap
  • DreamBathrooms
  • megavids
  • mdbf
  • khanakhh
  • cisconetworking
  • GTA5RPClips
  • modclub
  • tacticalgear
  • ethstaker
  • tester
  • normalnudes
  • anitta
  • Leos
  • provamag3
  • lostlight
  • All magazines