Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)𝕨
𝕨𝕒𝕤𝕒𝕓𝕚 @ wasabi @feddit.org
Posts
4
Comments
36
Joined
10 mo. ago
Selfhosted @lemmy.world
𝕨𝕒𝕤𝕒𝕓𝕚 @feddit.org

Combining Netbox and Ansible

I'm new to netbox and as far as I can tell there are two ways to combine Netbox with ansible.

  • Automate network and Netbox with ansible. A playbook would configure a switch port and then use the Netbox ansible collection to modify Netbox to reflect the change. All changes go through Ansible.
  • Use Netbox as the data source for ansible. A playbook pulls the switch configuration from Netbox and applies it to the switch using ansible. All changes go through Netbox.

What would be preferred? Both solve the Problem of having to change everything twice.

  • Some of the stuff on there is not european made, only european designed. I know that Fairphone manufactures in china and I am fairly certain that this is also the case for most other tech related entries on this site and possibly also for a ton of non-tech stuff.

  • ich_iel @feddit.org
    𝕨𝕒𝕤𝕒𝕓𝕚 @feddit.org

    ich🚢iel

  • Sowas macht in modernem Python auch niemand. Dem type checker für solche Konstrukte einen Typ beizubringen ist quasi unmöglich. Wer außerhalb von winzigen skripten keine type hints nutzt, machts mMn falsch.

  • Python kann mittlerweile statische type hints. Dabei schreibst du nur die intention ("ein int geht rein, ein bool kommt raus"). Mypy warnt dich dann wenn du in irgendeine Funktion Daten reinstecken willst, die nicht reinpassen. Zur Laufzeit werden die type gibts ignoriert. Je nachdem wen man fragt ist das entweder eine total flexible Art Typen so stark oder so lax wie man möchte in seinen code zu integrieren, oder es ist nutzlos da es keine laufzeitsicherheit bietet.

  • homeassistant @lemmy.world
    𝕨𝕒𝕤𝕒𝕓𝕚 @feddit.org

    Questions about Zigbee, Wifi and Smart-Plug measurement accuracy

    I want to dip my toes into the smart home world and decided that I want to use homeassistant and primarily use devices based on zigbee, as I do not want to overload my wifi with a bunch of devices.

    Smart plugs seem to be most interesting to me as I would like to have accurate power measurements for my homelab and applicances. The keyword is accurate here. There seems to be some science showing that the accuracy of smart plugs can vary a lot. I have read that devices that are flashed with the tasmota firmware can actually be calibrated. Unfortunately this firmware is only available for wifi devices.

    So my questions are:

    • Are there zigbee smartplugs that are known to be very accurate or can be calibrated to be very accurated?
    • Is preferring zigbee over wifi actually a good Idea? I mean both use 2.4 GHz, which is known to be crowded. When will wifi smart home devices become a problem?
    • Is a calibrated tasmota sm
    Ansible @lemmy.world
    𝕨𝕒𝕤𝕒𝕓𝕚 @feddit.org

    How to parallelize execution on a single host?

    I'm setting up an application using containers with ansible. I want to be able to set up the same application multiple times with a different set of variables. Is there a way how I could do this in parallel on a single host? I know I could deploy the same application n times on n different hosts, but what about n times on a single host? Is something like this possible? Doing it sequential obviously works, but it doesn't scale well.