control: any:: # we define a normal cfengine sequence. The 'unknown' section will go to the default (empty) parser actionsequence = ( directories editfiles copy files links processes disable shellcommands users cron unknown ) # external invokes the external user check, see below # NIS is a direct lookup in users.byname or groups.byname # local is just a User::pwent and User::grent lookup, so it *could* # be a NIS lookup as well if the machine is set up that way # users check engines = nis external local # users check engines = external local users check engines = local # This can be any program, first parameter is "group" or "user", # second parameter is the name. It MUST return 0 for true, 1 or # higher for false (in fine Unix tradition). external user check = /bin/false # test and test2 will get defined if you run on a machine named "heechee" groups: test = ( heechee ) test:: test2 = ( heechee ) users: none:: # any:: # the user will be created if they don't exist, otherwise the settings # will only be adjusted user cftest uid=1500 gid = 500 secondary_gid= 7 gecos="The 'test' Mongoose" user cftest uid=1501 user cftest delete full # the group will be created if they don't exist, otherwise the # settings will only be adjusted group cftest gid =1500 group cftest gid=1501 group cftest delete cron: any:: delete cron cftest delete full cron cftest hourly at 0,10,20,30,40,50 do as cftest /usr/bin/synchronize hourly at * do as cftest /usr/bin/synchronize hourly at 0-59 do as cftest /usr/bin/synchronize daily at 4,5,6 do as cftest /usr/bin/checknetwork daily at 4:30 do as cftest /usr/bin/checknetwork daily at 4,5:30 do as cftest /usr/bin/checknetwork daily at 4,5:30,6:30,7,9:30,4:01,7:01,10:02 do as cftest /usr/bin/checknetwork daily at 1 do as cftest /usr/bin/checknetwork weekly on Monday,Tuesday at 2; on Tuesday,Friday at 8,3; on Thursday at 20,22 do as cftest /usr/bin/checkquotas weekly on Monday,Sunday at 2:40; on Tuesday at 8:10,9:10; on Thursday at 20 do as cftest /usr/bin/checkquotas monthly on 1 at 2:30 do as cftest /usr/bin/checkquotas monthly on 1,2 at 2:10,3:40 do as cftest /usr/bin/checkquotas monthly on 1 at 2; on 4,8 at 4; on 31 at 8 do as cftest /usr/bin/checkquotas yearly in January on 1 at 2; in March on 4,5 at 8:30; in November,December on 28,30 at 20:01,21 do as cftest /usr/bin/checkquotas # cfperl will happily ignore this section unknown: ha ha this is not going to get processed!