This site uses cookies for analytics. By continuing to browse this site, you agree to use this.  Learn more

cdist beta functionalities

Introducing enable-beta option for using beta functionalities

Posted on Aug. 19, 2016

Hello cdist users!

cdist is evolving, and new features and functionalities are being added. Although these functionalities are still in beta we want you to use it, test it and send us feedback. With your valuable feedback we can fix, improve, or change things. Simply put : we can make cdist better together!

What it is

We are introducing the -b/--enable-beta flag. If some features are in beta it can be used only when enable-beta flag is enabled. If this is not the case then cdist prints error message and aborts.

With this option we can phase in features/stuff for testing that we might change later. Everything that is enabled with enable-beta might be removed or might change incompatible within versions.

You can and should test it, but you cannot (yet) rely on it being constantly in cdist.

We hope this approach makes cdist a better configuration system than it already is. Check out the examples below!

Examples

# -j/--jobs option is in beta and if you want to use it you must enable-beta
$ python3 scripts/cdist config -v -j -- 78.47.116.244
INFO: cdist: version 4.2.2-46-gf858191
ERROR: cdist: 'jobs' argument of 'config' command is beta, but beta is not enabled. If you want to use it please enable beta functionalities by using the -b/--enable-beta command line flag.

# if beta is enabled then you can use beta functionality
$ python3 scripts/cdist config -b -v -j -- 78.47.116.244
INFO: cdist: version 4.2.2-46-gf858191
INFO: 78.47.116.244: Running global explorers
INFO: 78.47.116.244: Remote transfer in 8 parallel jobs
INFO: 78.47.116.244: Running global explorers in 8 parallel jobs
INFO: 78.47.116.244: Running initial manifest /tmp/tmpfb_zev26/d886d4b7e4425a102a54bfaff4d2288b/data/conf/manifest/init
INFO: 78.47.116.244: Running manifest and explorers for __file/root/host.file
INFO: 78.47.116.244: Generating code for __file/root/host.file
INFO: 78.47.116.244: Finished successful run in 7.571524143218994 seconds
INFO: cdist: Total processing time for 1 host(s): 7.7026286125183105

That is the new feature of cdist. Thanks for reading, don't forget to go use it and let us know what you think!