Difficulty: beginner
Estimated Time: <10 minutes

Install and configure Spacemacs for working with CFEngine policy

Emacs cfengine3 mode is excellent. It supports syntax highlighiting, automatic syntax checking, function prototypes via eldoc and syntax reformatting.

In this scinerio we will install spacemacs and configure it for use with CFEngine.

Now you are ready to start managing your policy with Spacemacs.

You know how to:

  • Install Spacemacs
  • Configure CFEngine support
  • Enable syntax checking
  • Test Policy

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Spacemacs for CFEngine Policy

Step 1 of 7

Step 1 - Configure the host

First lets ensure that the hostname we request when accessing Mission Portal resolves correctly.

sudo bash -c "echo 127.0.0.1 [[HOST_SUBDOMAIN]]-443-[[KATACODA_HOST]].environments.katacoda.com >> /etc/hosts"

Next we ensure this is the hosts fqdn so that ssl certificates generated during install will match.

sudo hostnamectl set-hostname [[HOST_SUBDOMAIN]]-443-[[KATACODA_HOST]].environments.katacoda.com