O'Reilly logo

CFEngine 3 Beginner's Guide by Rajneesh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a policy server

A centralized CFEngine policy server is the core of the CFEngine framework. This helps CFEngine to scale as the changes need to be pushed only to the centralized policy server and the rest of the infrastructure is updated from there. Let's try to configure a policy server.

After installing CFEngine on the selected policy server as discussed inChapter 1, Getting Started with CFEngine, we need to execute the following steps: to configure a centralized policy server.

  1. Switch to root user on the policy server:
    user@my1.system.com$ su -
    
    
  2. Create a source repository for the policy files:
    root@my1system.com# mkdir -p /var/cfengine/masterfiles
    
    
  3. For demonstration, we will copy a few sample policy files already available with the CFEngine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required