Skip to content

0lmi/core

This branch is 574 commits behind cfengine/core:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Alex Miliukov
Mar 17, 2023
0c32257 · Mar 17, 2023
Mar 17, 2023
Aug 2, 2019
Feb 13, 2023
Aug 4, 2022
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Jan 2, 2023
Nov 14, 2022
Jun 3, 2021
Mar 2, 2023
Jan 4, 2021
Jan 2, 2023
Mar 2, 2023
Mar 2, 2023
Mar 4, 2023
Aug 17, 2022
Jan 24, 2023
Mar 4, 2023
Jan 12, 2023
Dec 22, 2022
Sep 11, 2020
Jun 9, 2022
Nov 14, 2022
Dec 3, 2019
Apr 15, 2019
Oct 26, 2021
Oct 25, 2022
Jan 4, 2021
Apr 6, 2020
Sep 22, 2021
Dec 15, 2022
Jul 25, 2014
Mar 2, 2023
Aug 1, 2018
Nov 25, 2021
Dec 10, 2021
Jan 4, 2021
Jan 4, 2021
Jan 4, 2021
Mar 2, 2023
Mar 17, 2015
Jan 4, 2021
Jun 17, 2020
Jun 2, 2017

Repository files navigation

Gitter chat

Language grade: C

CFEngine 3

CFEngine 3 is a popular open source configuration management system. Its primary function is to provide automated configuration and maintenance of large-scale computer systems.

Source code repositories

CFEngine is comprised of several source code repositories. As you might be looking for another part of the open source code base, here is a list to ease navigation:

  • core (This repo) - The C source code for core components, like cf-agent and cf-serverd.
    • libntech (submodule in core) - Library of reusable C code, such as data structures, string manipulation, JSON parsing, file handling, etc.
    • core/contrib (subdirectory in core) - User-contributed tools and scripts
  • masterfiles - The Masterfiles Policy Framework (MPF) contains the default policy (.cf) files
  • documentation - Documentation on how CFEngine components work, the policy language, the enterprise features, etc.
  • cf-remote - Tooling to make deploying / testing CFEngine across many remote instances easy
  • buildscripts - Scripts and files needed to build installer packages across a wide variety of supported platforms

(Each repo also contains some supporting code/files, such as tests, scripts, documentation, etc.).

Installation

Pre-built installers are available from our website:

To install from source please see the INSTALL file for prerequisites and build instructions.

License

As per the LICENSE file, CFEngine Community is licensed under the GNU General Public License, version 3.

All the files in this repository are licensed under GNU GPL version 3, unless stated otherwise in the copyright notice inside the particular file.

Example Usage

Hello World

The following code demonstrates simple CFEngine output through a reports promise.

body common control
{
  bundlesequence => { "run" };
}

bundle agent run
{
  reports:
    cfengine::
      "Hello, world";
}

The following policy code may be executed with cf-agent (the main CFEngine binary) as follows.

$ cf-agent/cf-agent hello.cf
R: Hello, world

Contributing

Please see the CONTRIBUTING.md file.

Relationship to CFEngine 2

CFEngine 3 is not a drop-in upgrade for CFEngine 2 installations. It is a significantly more powerful version, but it is incompatible with the CFEngine 2 policy language.

The server part of CFEngine 3 supports the network protocol of CFEngine 2, so you may upgrade your installation gradually.

Authors

CFEngine was originally created by Mark Burgess with many contributions from around the world. Thanks everyone!

CFEngine is sponsored by Northern.tech AS

About

CFEngine Community

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.9%
  • Shell 5.0%
  • M4 1.7%
  • Makefile 1.1%
  • Emacs Lisp 1.1%
  • Yacc 0.6%
  • Other 1.6%