Installing CFEngine Nightlies using cf-remote
Posted by: Ole Herman Elgesem
Nightly packages are very useful for testing new features of CFEngine. Right now, nightly packages can be used to test out these new features:
- Compliance Reports.
- Mission Portal Dark Mode.
- New host info page with variable pinning and copy buttons.
Note that these features are in development, some parts may be unfinished or buggy. Nightly packages are not supported and should not be used in production environments.
cf-remote is a tool for automating the setup and installation of CFEngine. It allows you to easily install CFEngine packages over SSH. The tool is open source, and installation instructions are available on GitHub:
Downloading packages using
cf-remote is easy:
$ cf-remote --version master packages hub ubuntu Available releases: 3.16.0, 3.15.x, 3.15.2, 3.15.1, 3.15.0, 3.15.0b1, 3.12.x, 3.12.5, 3.12.4, 3.12.3, 3.12.2, 3.12.1, 3.12.0 Using master: Downloading package: '/Users/olehermanse/.cfengine/cf-remote/packages/cfengine-nova-hub_3.17.0a.db4bd2209~10418.ubuntu14_amd64.deb' Downloading package: '/Users/olehermanse/.cfengine/cf-remote/packages/cfengine-nova-hub_3.17.0a.db4bd2209~10413.ubuntu16_amd64.deb' Downloading package: '/Users/olehermanse/.cfengine/cf-remote/packages/cfengine-nova-hub_3.17.0a.db4bd2209~10418.ubuntu18_amd64.deb' $
cf-remote defaults to the latest LTS release, so we specify
--version master to get the latest nightly build from the master branch. The
packages command downloads packages. The two tags
hub are optional, and used to filter packages. Without them,
cf-remote would download packages for all the supported platforms.
You don’t have to use cf-remote to install these packages, they are just like our normal packages.
If you have ssh access to a host, with password-less sudo, you can use cf-remote to install packages:
$ cf-remote --version master install --hub email@example.com --bootstrap 172.31.18.204 firstname.lastname@example.org OS : ubuntu (debian) Architecture : x86_64 CFEngine : Not installed Policy server : None Binaries : dpkg, apt Package already downloaded: '/Users/olehermanse/.cfengine/cf-remote/packages/cfengine-nova-hub_3.17.0a.db4bd2209~10413.ubuntu16_amd64.deb' Copying: '/Users/olehermanse/.cfengine/cf-remote/packages/cfengine-nova-hub_3.17.0a.db4bd2209~10413.ubuntu16_amd64.deb' to 'email@example.com' Installing: 'cfengine-nova-hub_3.17.0a.db4bd2209~10413.ubuntu16_amd64.deb' on 'firstname.lastname@example.org' CFEngine 3.17.0a.db4bd2209 (Enterprise) was successfully installed on 'email@example.com' Bootstrapping: '188.8.131.52' -> '172.31.18.204' Bootstrap successful: '184.108.40.206' -> '172.31.18.204'
install command will find the same packages as
packages did. If they are already downloaded, they will be reused.
That’s it, the host has been bootstrapped, and Mission Portal is running. You can open Mission Portal in your browser and start exploring. (In my case above, it would be