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

Time for action - setting up a web service

To set up a web service we will need a web server. We'll use Apache here. The next code snippet may be copied to a file called webserver-config.cf. Various methods are available for installation of packages, such as yum, apt, zipper, and so on. The method may be defined by the package_method attribute under the agent bundle. For example:

package_method => apt

  1. We'll use the attribute now, but in this case we will be using yum as our package method The following lines should be copied to a file:
    ##################################################### # Apache web server installation ##################################################### body common control { bundlesequence => { "webserver", "start_webserver" ...

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