Entries Tagged with ‘example’

Today I noticed that it might be useful to backup some folders on one of my VMs from time to time. At first I thought about creating a new cron job, but then I noticed that Cfengine 3 is running on that VM. So – why not letting Cfengine 3 do all the work? Writing […]

(Continue reading…)

During this blog post, I will show you how to edit the sshd_config file and restart sshd if necessary. For the sake of completeness and since this blog post is part of the comparison series “Cfengine 3 vs. Puppet”, I want to point you to the Cfengine 3 code snippet which does exactly the same. […]

(Continue reading…)

For this part of my comparison series “Cfengine 3 vs. Puppet” I upgraded my Linux Mint 12 to 13 and switched to Puppet 3.0.2. If you download and try my little code snippets I recommend to use at least Puppet 2.7.14 since this version is able to run the official apt module from Puppetlabs. While […]

(Continue reading…)

Welcome to the next part of my little blog entry series about comparing Cfengine 3 with Puppet. In this issue, we will write a Puppet manifest for mounting a NFS share. You can compare it directly to the Cfengine 3 code snippet if you click here. Writing the Puppet code snippet for mounting a NFS […]

(Continue reading…)

Welcome to part two of my series of blog entries about comparing Cfengine 3 to Puppet. The goal is to write little task-orientated snippets for both configuration management tools and compare the results each time. The goal is to find out which piece of software is easiest to learn and use. Today we are re-writing […]

(Continue reading…)

Recently, I had to use Ntop to analyze the network traffic of one customer file server. Ntop shows the traffic per interface and there per protocol, source IP and offers many other ways of showing you what happens in your network. Ntop is great; however, I observed this tool taking many system resources since it […]

(Continue reading…)

One of the most common tasks of a Linux sysadmin (or DevOp) might be setting file permissions and ownerships. In this blog I’ll show you how you can do that in a very simple but effective way with Cfengine 3. Writing the Cfengine 3 code for setting file permissions and ownerships body common control { […]

(Continue reading…)

In my last blog post about Cfengine 3 we talked about how Cfengine 3 can check for you if an user exists or not. Today we will have a look at a very simple way of how a new user can be created if it doesn’t already exist. Writing the Cfengine 3 code for creating […]

(Continue reading…)

Sometimes it is necessary to create new symlinks. The following code snippet shows you how to do that with Cfengine 3. Please note that there are several ways of achieving our goal, but the following one should be the most efficient one when you only want to set one symlink. Writing the Cfengine 3 code […]

(Continue reading…)

During the last weeks I received a lot of positive feedback on my blog posts and the Cfengine 3 code snippets so I started to post them on Twitter. Especially my little article about monitoring the CPU load with Cfengine 3 gained some attention there, that is why I am very motivated to dive in […]

(Continue reading…)