Forum: Cfengine Help
Subject: Re: "Hourly" splayclass for daily staggered script execution; some 
nodes not executing
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18359,18640#msg-18640


bundle agent test {

        classes:

                "rand" dist => { "2", "3", "5" };

        reports:

                rand_2::
                        "There is a 2 in 10 chance of classs rand_2 being 
defined";
                rand_3::
                        "There is a 3 in 10 chance of classs rand_3 being 
defined";
                rand_5::
                        "There is a 5 in 10 chance of classs rand_5 being 
defined";
}


You could then compound classes such as 'rand_3.Hr15' and further limit this to 
once during hour 15 using ifelapsed.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to