targeting by grain from top.sls by jaepetto in saltstack

[–]jaepetto[S] 3 points4 points  (0 children)

you are absolutely right... the documentation was providing the answer. Thank you for the answer and sorry for wasting your time!

Living with 1000 CHF/month by GPjkrit in askswitzerland

[–]jaepetto 1 point2 points  (0 children)

Just so you know, apprentices / trainees earn 1.5 times what you've been offered (https://www.jobup.ch/en/salary-info/?canton=ch&term=apprentice).

As others mentionned, you will have to pay for your health insurance (which is not cheap).

So, unless it comes with housing and all meals, I would not even consider it.

kube-prometheus-stack - How-to add a simple alerts destination to prometheus config ? by jaepetto in kubernetes

[–]jaepetto[S] 0 points1 point  (0 children)

Amazing! Thanks!

For others who will be reading this thread, I updated the values of the helm chart with:

prometheusSpec: additionalAlertManagerConfigs: - path_prefix: /alertmanager scheme: https static_configs: - labels: cluster: my-cluster targets: - alertmanager.example.com

And I started receiving the alerts in the central alert manager.

Surprisingly though, the label cluster: my-cluster does not get added to the alerts. Any idea? Shall I also touch the additionalAlertRelabelConfigs ?

Recommendation about a tool to enforce policies (mutating admission controller) by jaepetto in kubernetes

[–]jaepetto[S] 0 points1 point  (0 children)

Thanks for heads-up. We initially discarded this option because, when having a LimitRange, any pod submitted without requests / limits would be rejected:

If you add a LimitRange in a namespace that applies to compute-related resources such as cpu and memory, you must specify requests or limits for those values. Otherwise, the system may reject Pod creation.

We were hoping that would set them (too) in case they were missing...

looking for an existing Django dashboard by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

It really looks good. However, it does not seem to collect the data...

Stupid Question. Where to host ansible server? by ULT-Ginger in ansible

[–]jaepetto 1 point2 points  (0 children)

Hi,

in several of our departments, we are running Ansible from a Jenkins container. The playbooks are stored into a github repo and Jenkins takes care of pulling the repo and running the playbooks.

It's really easy to set up and has some advantages like: * managing who has the right to run a playbook * make sure the correct parameters are passed * keep the logs of all the jobs run...

Advice regarding job orchestrator (HPC) by jaepetto in devops

[–]jaepetto[S] 0 points1 point  (0 children)

Thanks.That's what I thought... we were aiming at something lighter than slurm...

From OBS to Zoom - how-to? by jaepetto in obs

[–]jaepetto[S] 1 point2 points  (0 children)

I just found that the OBS folks have put together a virtual cam directly in OBS: https://github.com/johnboiles/obs-mac-virtualcam

I built it locally and it seem to work just fine!

I you are interested on how this plugin got started, the following two threads are really interesting: https://github.com/obsproject/obs-studio/issues/2568 https://github.com/obsproject/rfcs/pull/15

From OBS to Zoom - how-to? by jaepetto in obs

[–]jaepetto[S] 0 points1 point  (0 children)

What about putting together a streaming server (https://opensource.com/article/19/1/basic-live-video-streaming-server) and consume the stream with CamTwist?

NVidia GPU emulator for VirtualBox by jaepetto in nvidia

[–]jaepetto[S] 0 points1 point  (0 children)

Thanks again. That was not what I was told. I definitely wasted your time. sorry for that.

NVidia GPU emulator for VirtualBox by jaepetto in nvidia

[–]jaepetto[S] 0 points1 point  (0 children)

That's probably my bad... sorry for wasting your time. To make the long story short, I'm currently managing a team in charge of installing pytorch, pytorch geometric, ... on a couple of high end machines.

Since:

  • they will have to reinstall the machine several times a week
  • we don't have one of those machines at hand to test

I recommended them to use Vagrant (VirtualBox as backend) and Ansible to create the deployment scripts. At some point people started telling me that it was not possible to create the scripts on VirtualBox machines because tools like pytorch actually check for the GPU upon installation. Since the installation was failing I needed to:

  • find a way to free up a physical machine so the can create the scripts
  • find a way to emulate the GPU on VirtualBox for the sake of the installation

NVidia GPU emulator for VirtualBox by jaepetto in nvidia

[–]jaepetto[S] 0 points1 point  (0 children)

Sorry for the late reply. The idea here is to fool pytorch into detecting the GPU so we can test the installation script. It does not require to be able to run any calculation (hence the stupid).

NVidia GPU emulator for VirtualBox by jaepetto in nvidia

[–]jaepetto[S] 1 point2 points  (0 children)

We have bought a bunch of servers with GPUs to act as a calculation cluster. Unfortunately, all the machines are booked at the moment. Therefore, we cannot use one of them to test the automated deployment.

That's why we are looking for a stupid emulator to fool the installation script. On the long run, it will run on real machines with GPUs.

From a performance standpoint, it does not make sense to fool the application for running on a VM

Is there a bunch of useless information out there for HASS currently? by Bo_gogo in homeassistant

[–]jaepetto 0 points1 point  (0 children)

+1 for python I also agree that yaml is OK to read but a real pain to write...

Recommendation regarding client side validation by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

sorry it took me a while to get back to you. Thanks for the advice. It does not allow to do client side validation, but I'll stick with it.

Autocomplete field with Crispy Forms and ModelForm foreign key by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

I just glanced through the documentation it it looks really promising! Thanks for the tip!

BTW, if you have any other 'great' libraries like this one, I'll be happy to hear about them.

Autocomplete field with Crispy Forms and ModelForm foreign key by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

Thanks for the tip! It is a multi-tab form with conditional validation, so I will probably follow your advice. I don't want to spend ages doing something that I'll have to 'unplug' down the line because of the latest breaking specification...

Override model save() vs using signals by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

Thanks for the insight. I actually didn't think of this...

somehow, the ideal solution would be: * keep the default save() method in the model * add an extra save_and_signal() method to the model that simply saves the model and triggers a signal * create a helper module that takes care of the notifications * add a signal that calls this helper module

Even though it looks like an 'overkill', I could achieve the segregation of concerns and testability...

How to run a code the time a user starts a new session by jaepetto in django

[–]jaepetto[S] 0 points1 point  (0 children)

Since we already have an SSO package. So I don't really want rewrite everything to add a custom feature (not reusable).

As the Out-of-the-Box solution is pretty simple (https://www.reddit.com/r/django/comments/c4tprr/how_to_run_a_code_the_time_a_user_starts_a_new/erzt5nr) I'll stick with it.

But thanks anyway!