Bootstrap a CFEngine3 3.4.5 server and client in under 4 minutes

by bahamat
macOS ā—† xterm-256color ā—† zsh 2944 views

This is a demonstration of bootstrapping cfengine on two SmartOS instances.

The process will be very similar for any platform that can build and run cfengine. Iā€™m using my own cfengine package compiled directly from source rather than the version that comes with SmartOS pkgsrc.

  • Server IP: 10.5.0.41
  • Client IP: 10.5.0.42

Note: The bootstrap command in 3.5 is simply cf-agent -B <ip>

FAQ:

Why did you kill and restart cf-serverd?

To ensure that cf-serverd has picked up the ACL changes after becoming the policy hub.

Why did you copy CoreBase to masterfiles then to inputs? Why not just copy straight to inputs?

The masterfiles directory is for admins to edit policies. The inputs directory is for cfengine to read and distribute. For more details see the CFEngine Documentation.