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 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 Exploitation Linux

awk Tutorial

La commande awk Philosophie On parle souvent de awk comme d’une version améliorée de sed. En effet, on retrouve la notion de portée de commande et de manipulation de texte, mais à mon avis, cette comparaison s’arrête la. Si sed dispose d’une commande if, l’on ne peut parler de langage de programmation alors que cette notion s’applique totalement à awk. Il n’est pas question ici de traiter totalement awk mais juste de vous donner un bref aperçu de sa puissance. Dû à la complexité de awk, il ne nous sera pas possible de traiter ce langage de façon extensive. Aussi, nous allons procéder à un rapide tutorial dans la première partie et donner une référence rapide des fonctionnalités les plus utilisées dans une seconde.

Continue Reading... awk Tutorial
Posted in Exploitation

15 Practical Grep Command Examples In Linux / UNIX

You should get a grip on the Linux grep command. This is part of the on-going 15 Examples series, where 15 detailed examples will be provided for a specific command or functionality.  Earlier we discussed 15 practical examples for Linux find command,  Linux command line history and mysqladmin command. In this article let us review 15 practical examples of Linux grep command that will be very useful to both newbies and experts.

Continue Reading... 15 Practical Grep Command Examples In Linux / UNIX
Posted in Dev Exploitation Linux

Simple Vi Cheat Sheet

Un petit pense-bête bien pratique sur les commandes Vim

Continue Reading... Simple Vi Cheat Sheet
Posted in EeePC Exploitation Linux

NTFS Cloning and shrinking

“Honey, I shrunk the filesystem!” Recently I bought a solid-state harddisk, an Intel X25M. I wanted to use this disk in my Windows development system, without having to do a fresh install of Windows XP. I really didn’t want to install all my applications again, not to speak of all the custom configurations and tweaks I usually apply to Windows to make it palatable. So I thought I’d just make a image copy of my old harddisk to this new one, and be done with it.

Continue Reading... NTFS Cloning and shrinking
Posted in Exploitation

Freenas/ZFS and FreeNAS expansion

Disclaimer: Use this info at your own risk, don’t come to me if all your data disappears one day. But it works for me.

Continue Reading... Freenas/ZFS and FreeNAS expansion