My blog, keeping you up-to-date on my latest news.

 

Cleanup your Debian configuration files

Linux • 2015-01-04

 

If you like to keep your computer clean, you may want to cleanup useless configuration files.

I'm going to show you a simple command to purge them.

Read More...

 

Chef Vs. Puppet

DevOps • 2014-08-06 • 3 Comments

 

Puppet or Chef? Chef or Puppet? This question has been asked in many companies or in the mind of developers wanting to evolve in deployement.
And, when asked the question about what deployment tool use, answer are usually: "Puppet is better", "Puppet is for pu**y, go Chef!".

After several months using Puppet and do some contributions on Stackforge, I had the desire and need to see what Chef have in the stomach!

Read More...

 

Using Hiera with Puppet

DevOps • 2014-02-19 • 1 Comment

 

Since a few months, I work essentially with Puppet to make continuous deployment.
When I write manifests, some of them specifically aim one or two servers, others servers must do others things.
For example, by putting roles, the database role does not need an apache server, while the frontend role does. Same applies for Openstack, a keystone server has differents needs than an horizon or a glance server.

In short, it quickly becomes harder and not really aesthetic to continually add conditions in all manifests in order to define if yes or no, such and such services must be installed or running on one server and not on another.

Hiera makes Puppet better by keeping site-specifc data out of your manifests. Puppet classes can request whatever data they need, and your Hiera data will act like a side-wide config file.

Read More...

 

Escaping special chars within LDAP

Linux • 2013-08-06

 

When programming against any LDAP backend it’s good to sanitize any user input that may go into a search filter.
A typical case is authentication applications, where an input username or email must be used to resolve a user’s distinct name (DN) in the LDAP directory.

You shouldn’t have to worry about anything on this issue if you’re using Zend Framework 2 properly. The Zend\Ldap\Filter\AbstractFilter class embeds escapeValue() method, which is used specifically for escaping values used in LDAP queries

Read More...

 

Stashing your work with git

Linux • 2013-06-08 • 2 Comments

 

Often when you use git in collaboration, things have some changes and you want to switch branches to work on another tasks. The problem is, you don't want to do a commit of half-done work and don't want to loose what you already do.

So the anwser to this issue is the git stash command.

Read More...

 

<< Previous Posts

Categories