atsaloli / cf3-tutorial Goto Github PK
View Code? Open in Web Editor NEWCFEngine Tutorial
CFEngine Tutorial
you have to run the script in 3.8 to prepare for 3.9
we need to add some verbiage for that one listing
They must be lower case:
[root@cfengine01 source]# cf-agent -KI -f ./250-020-Processes-0260-Terminating_a_process.cf
./250-020-Processes-0260-Terminating_a_process.cf:9:38: error: Selection is out of bounds
signals => { "TERM", "KILL" };
^
error: There are syntax errors in policy files
error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "./250-020-Processes-0260-Terminating_a_process.cf"'
error: Failsafe condition triggered. Interactive session detected, skipping failsafe.cf execution.
error: Error reading CFEngine policy. Exiting...
bundle agent main
{
vars:
"global" data => parsejson('{ "fruit": "banana", "drink": "pepsi" }');
"override" data => parsejson('{ "drink": "coke" }');
"merged_global_and_override" data => mergedata("global", "override");
"merged_global_and_override_str" string => format("%S", merged_global_and_override);
reports:
"$(merged_global_and_override_str)";
}
output:
test.cf
[root@host ~]# cf-agent -f ./test.cf
R: {"drink":"coke","fruit":"banana"}
[root@host ~]#
Add some verbiage to explain each diagram, and to separate them.
(in chapter 1, where the data flow diagrams are.)
rename COPBL to CFE Std Lib
In section http://www.cfenginetutorial.org/book/cfengine_100#uid40 the download link is for 3.7.1 community edition, which is no longer supported.
Since all the examples were written with 3.7.1, though, a note should be added along with an updated link.
Since the numbering of the exercises is independent from the numbering of the example listings, it is unclear where to scroll to find a particular numbered exercise.
This was pointed out by one of today's students (Vincent) as throwing him off.
http://www.cfenginetutorial.org/book/cfengine_250#uid131
Also, it contains the long process table regex for a splunkd process, which I am pretty sure is based on the older processes promises implementation - need to dig up the details, but as I recall there was an improvement to that so that the regex is only matched against the actual process name (or full command?).
It has three steps but they're all numbered "1."
Section http://www.cfenginetutorial.org/book/cfengine_100#cid9 needs updating accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.