Posted in Dev Exploitation Linux

Puppet CA/puppetmasterd cert renewal

While we’re still converting our puppet controlled infra to Ansible, we still have some nodes “controlled” by puppet, as converting some roles isn’t something that can be done in just one or two days. Add to that other items in your backlog that all have priority set to #1 and then time is flying, until you realize this for your existing legacy puppet environment (assuming false FQDN here, but you’ll get the idea):

So, as long as your PKI setup for puppet is still valid, you can act in advance, resign/extend CA and puppetmasterd and distribute newer CA certs to agents, and go forward with other items in your backlog, while still converting from puppet to Ansible (at least for us)

Continue Reading... Puppet CA/puppetmasterd cert renewal
Posted in Apple Electronique

2011 iMac 27″ K1100M Graphics Card Swap And Install Catalina

A step-by-step guide on how I successfully swap the graphics card to K1100M on my 2011 27″ iMac and install Catalina in this unsupported system. I decided to take on this project due to the infamous Apple AMD GPU failure so that I can continue getting life out of my iMac. This process applies to my own system, which may or may not work exactly the same for other systems with different specs. Credit to those in this thread over at MacRumors for making this project possible.

Continue Reading... 2011 iMac 27″ K1100M Graphics Card Swap And Install Catalina
Posted in Linux

Amavis per recipients forward method

a new configuration variable @forward_method_maps (along with making a delivery_method() a property of a recipient instead of being a property of a message) makes per-recipient forwarding method selection possible; suggested by Ralf Hildebrandt;

Continue Reading... Amavis per recipients forward method
Posted in Exploitation freebsd

FreeNas: Create Custom Jails template

FreeNAS® supports the ability to add custom templates to the Templates drop-down menu described in Table 13.2.1. To create a custom template, first install the desired operating system and configure it as needed. The installation can be either to an existing jail or on another system. Next, create an mtree specification using this command, replacing /path/to/jail with the actual path to the jail:

After configuration is complete, create a tarball of the entire operating system to be used as a template. This tarball needs to be compressed with gzip and end in a .tgz extension. Be careful when creating the tarball as it is possible to end up in a recursive loop. In other words, the resulting tarball must be saved outside of the operating system being tarballed, such as to an external USB drive or network share. Alternately, create a temporary directory within the operating system and use the –exclude switch to tar to exclude this directory from the tarball. The exact tar command to use will vary, depending upon the operating system being used to create the tarball. Save the generated .mtree and .tgz files to either an FTP share or an HTTP server. The FTP or…

Continue Reading... FreeNas: Create Custom Jails template
Posted in backup Exploitation freebsd

Restore FreeNAS jail from dataset snapshot/backup

If something bad happens with your FreeNAS jail you might want to go back in time and just restore the jail from a previously saved snapshot of the jail dataset. Of course, this assumes that you previously have taken snapshots to restore from for the jail, either automatically or manually. If so, this howto describes how you can restore the state of your jail to any of those snapshots.

Continue Reading... Restore FreeNAS jail from dataset snapshot/backup
Posted in Dev Exploitation

Installing GitLab on FreeBSD 10

Source : https://raw.githubusercontent.com/gitlabhq/gitlab-recipes/master/install/freebsd/freebsd-10.md

Continue Reading... Installing GitLab on FreeBSD 10
Posted in Dev Exploitation

Très bonne présentation organisation DevOps

Mise en place d’une organisation DevOps Cyrille Le Clerc Comme le mouvement Agile a rapproché donneurs d’ordre et équipes de réalisation autour d’une vision commune orientée « produit », le mouvement DevOps rapproche aujourd’hui les équipes de développement (DEV) et d’exploitation (OPS) autour d’une vision commune orientée « service », afin de mieux concilier réactivité et qualité de service. DevOps aborde le paradoxe entre des équipes projets qui cherchent à livrer toujours plus fréquemment des nouvelles fonctionnalités d’une part et d’autre part des équipes d’exploitation qui cherchent à stabiliser et fiabiliser les systèmes tout en maitrisant leur coût.

Continue Reading... Très bonne présentation organisation DevOps
Posted in Arduino Electronique

Récupérer la téléinformation ERDF sur l’Arduino

La téléinformation, qu’est ce que c’est ? Si vous disposez d’un compteur électronique ERDF, il y a de fortes chances pour que vous disposiez de 2 bornes dédiées à la téléinformation. Traditionnellement, elle est utilisée par les appareils de gestion de chauffage, de délestage, … Franchement, avec les différents chantiers que j’ai pu faire, je ne l’ai vu que trop rarement utilisée.

Continue Reading... Récupérer la téléinformation ERDF sur l’Arduino
Posted in Arduino Electronique

les capteurs DHT11 DHT22

Après avoir abordé la partie théorique sur les capteurs de température et d’humidité DHT11 et DHT22 dans un précédent article, place à la pratique ! Un bref rappel sur la connectique du capteur composé de 4 pins : VCC : Alimentation Data Non utilisé GND : Commun Pins DHTxx

Continue Reading... les capteurs DHT11 DHT22
Posted in Arduino Electronique

Le circuit intégré ULN2803

N’ayons pas peur des mots, le circuit intégré ULN2803 est génial ! En fait, le ULN2803 est tout simplement un réseau de 8 transistors NPN darlington intégrés dans un boitier de 18 broches. Et ce petit boitier tout intégré va vous faire gagner de la place sur votre circuit imprimé, du temps de réalisation (18 broches à souder contre 24 avec des transistors indépendants).

Continue Reading... Le circuit intégré ULN2803