On 02/08/11 14:12, Frans Lawaetz wrote: > You probably want something like the following. "restart_ssh" will only > be activated as a class if the file needs to be copied. > > files: > > "/etc/ssh/sshd_config" > perms => mog("644", "root", "wheel"), > copy_from => > secure_cp("$(g.masterfiles)/config/etc/ssh/sshd_config", "$(g.phost)"), > classes_satisfied => "restart_ssh"; > > commands: > > restart_ssh:: > "pkill -HUP sshd"; >
thanks for the input frans and neil, i'll look at the classes{,_satisfied} syntax and sort it out. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine