|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| .github/workflows/ | H | 17-Dec-2021 | - | 48 | 42 |
| .lgtm/cpp-queries/ | H | 17-Dec-2021 | - | 335 | 283 |
| 3rdparty/peg-0.1.15/ | H | 17-Dec-2021 | - | 7,881 | 6,884 |
| cf-agent/ | H | 17-Dec-2021 | - | 35,432 | 26,612 |
| cf-check/ | H | 17-Dec-2021 | - | 3,700 | 3,076 |
| cf-execd/ | H | 17-Dec-2021 | - | 2,841 | 2,038 |
| cf-key/ | H | 17-Dec-2021 | - | 1,022 | 723 |
| cf-monitord/ | H | 17-Dec-2021 | - | 7,104 | 4,795 |
| cf-net/ | H | 17-Dec-2021 | - | 1,031 | 845 |
| cf-promises/ | H | 17-Dec-2021 | - | 576 | 441 |
| cf-runagent/ | H | 17-Dec-2021 | - | 957 | 733 |
| cf-secret/ | H | 17-Dec-2021 | - | 1,172 | 958 |
| cf-serverd/ | H | 17-Dec-2021 | - | 9,900 | 7,004 |
| cf-testd/ | H | 17-Dec-2021 | - | 902 | 692 |
| cf-upgrade/ | H | 17-Dec-2021 | - | 1,971 | 1,170 |
| contrib/ | H | 17-Dec-2021 | - | 13,049 | 9,917 |
| docs/ | H | 17-Dec-2021 | - | 2,038 | 1,425 |
| examples/ | H | 03-May-2022 | - | 28,724 | 21,734 |
| ext/ | H | 17-Dec-2021 | - | 280 | 161 |
| libcfnet/ | H | 17-Dec-2021 | - | 8,045 | 5,150 |
| libenv/ | H | 17-Dec-2021 | - | 5,680 | 4,110 |
| libntech/ | H | 26-Oct-2021 | - | 62,433 | 42,971 |
| libpromises/ | H | 03-May-2022 | - | 74,086 | 53,580 |
| m4/ | H | 17-Dec-2021 | - | 1,211 | 1,112 |
| misc/ | H | 17-Dec-2021 | - | 2,432 | 1,766 |
| tests/ | H | 17-Dec-2021 | - | 280,586 | 244,262 |
| travis-scripts/ | H | 17-Dec-2021 | - | 404 | 295 |
| .CFVERSION | H A D | 17-Dec-2021 | 7 | 2 | 1 |
| .clang-format | H A D | 17-Dec-2021 | 1,000 | 41 | 40 |
| .gitignore | H A D | 17-Dec-2021 | 2.8 KiB | 188 | 163 |
| .gitmodules | H A D | 17-Dec-2021 | 84 | 4 | 3 |
| .mailmap | H A D | 17-Dec-2021 | 4 KiB | 51 | 50 |
| .style.yapf | H A D | 17-Dec-2021 | 123 | 6 | 5 |
| .travis.yml | H A D | 17-Dec-2021 | 1.8 KiB | 60 | 50 |
| AUTHORS | H A D | 17-Dec-2021 | 6.4 KiB | 190 | 145 |
| BSDmakefile | H A D | 17-Dec-2021 | 1 KiB | 26 | 25 |
| CODE_OF_CONDUCT.md | H A D | 17-Dec-2021 | 1.7 KiB | 37 | 28 |
| CONTRIBUTING.md | H A D | 17-Dec-2021 | 38.1 KiB | 1,137 | 857 |
| ChangeLog | H A D | 17-Dec-2021 | 158 KiB | 3,466 | 3,114 |
| GLOBALS | H A D | 17-Dec-2021 | 4.1 KiB | 136 | 96 |
| INSTALL | H A D | 17-Dec-2021 | 3.9 KiB | 142 | 94 |
| LICENSE | H A D | 17-Dec-2021 | 43.2 KiB | 891 | 712 |
| Makefile.am | H A D | 17-Dec-2021 | 5.6 KiB | 179 | 98 |
| README.md | H A D | 17-Dec-2021 | 3.6 KiB | 87 | 57 |
| autogen.sh | H A D | 17-Dec-2021 | 2.3 KiB | 79 | 38 |
| checkglobals.sh | H A D | 17-Dec-2021 | 1.6 KiB | 52 | 25 |
| config.post.h.in | H A D | 17-Dec-2021 | 1.2 KiB | 30 | 23 |
| configure.ac | H A D | 17-Dec-2021 | 58.4 KiB | 1,881 | 1,545 |
| configure_flags.env.in | H A D | 17-Dec-2021 | 750 | 18 | 13 |
| create_tarball.sh | H A D | 17-Dec-2021 | 1.8 KiB | 74 | 43 |
| lgtm.yml | H A D | 17-Dec-2021 | 195 | 15 | 12 |
| splint-check.sh | H A D | 17-Dec-2021 | 348 | 13 | 5 |
README.md
1[![Gitter chat](https://badges.gitter.im/cfengine/core.png)](https://gitter.im/cfengine/core)
2
3[![Language grade: C](https://img.shields.io/lgtm/grade/cpp/g/cfengine/core.svg?logo=lgtm&logoWidth=18&label=code%20quality)](https://lgtm.com/projects/g/cfengine/core/)
4
5# CFEngine 3
6
7CFEngine 3 is a popular open source configuration management system. Its primary
8function is to provide automated configuration and maintenance of large-scale
9computer systems.
10
11## Source code repositories
12
13CFEngine is comprised of several source code repositories.
14As you might be looking for another part of the open source code base, here is a list to ease navigation:
15
16* [core](https://github.com/cfengine/core) (This repo) - The C source code for core components, like cf-agent and cf-serverd.
17 * [libntech](https://github.com/cfengine/libntech) (submodule in core) - Library of reusable C code, such as data structures, string manipulation, JSON parsing, file handling, etc.
18 * [core/contrib](https://github.com/cfengine/core/tree/master/contrib) (subdirectory in core) - User-contributed tools and scripts
19* [masterfiles](https://github.com/cfengine/masterfiles) - The Masterfiles Policy Framework (MPF) contains the default policy (.cf) files
20* [documentation](https://github.com/cfengine/documentation) - Documentation on how CFEngine components work, the policy language, the enterprise features, etc.
21* [cf-remote](https://github.com/cfengine/cf-remote) - Tooling to make deploying / testing CFEngine across many remote instances easy
22* [buildscripts](https://github.com/cfengine/buildscripts) - Scripts and files needed to build installer packages across a wide variety of supported platforms
23
24(Each repo also contains some supporting code/files, such as tests, scripts, documentation, etc.).
25
26## Installation
27
28Pre-built installers are available from our website:
29
30* [Download CFEngine Enterprise Installers](https://cfengine.com/product/cfengine-enterprise-free-25/)
31* [Download CFEngine Community Installers](https://cfengine.com/product/community/)
32
33To install from source please see
34the [INSTALL](https://github.com/cfengine/core/blob/master/INSTALL) file for
35prerequisites and build instructions.
36
37## License
38
39As per the [LICENSE](https://github.com/cfengine/core/blob/master/LICENSE) file,
40CFEngine Community is licensed under the GNU General Public License, version 3.
41
42All the files in this repository are licensed under GNU GPL version 3, unless
43stated otherwise in the copyright notice inside the particular file.
44
45## Example Usage
46
47### Hello World
48
49The following code demonstrates simple CFEngine output through a reports promise.
50
51 body common control
52 {
53 bundlesequence => { "run" };
54 }
55
56 bundle agent run
57 {
58 reports:
59 cfengine::
60 "Hello, world";
61 }
62
63The following policy code may be executed with cf-agent (the main CFEngine binary) as follows.
64
65 $ cf-agent/cf-agent hello.cf
66 R: Hello, world
67
68## Contributing
69
70Please see the [CONTRIBUTING.md](https://github.com/cfengine/core/blob/master/CONTRIBUTING.md) file.
71
72## Relationship to CFEngine 2
73
74CFEngine 3 is *not* a drop-in upgrade for CFEngine 2 installations. It is a
75significantly more powerful version, but it is incompatible with the CFEngine 2
76policy language.
77
78The server part of CFEngine 3 supports the network protocol of CFEngine 2, so you may
79upgrade your installation gradually.
80
81# Authors
82
83CFEngine was originally created by Mark Burgess with many contributions from
84around the world. Thanks [everyone](https://github.com/cfengine/core/blob/master/AUTHORS)!
85
86[CFEngine](https://cfengine.com) is sponsored by [Northern.tech AS](https://northern.tech)
87