Forum: CFEngine Help
Subject: ifelapsed
Author: timw077
Link to topic: https://cfengine.com/forum/read.php?3,24572,24572#msg-24572

I would like to spread out some of my checks  / convergence some.  

Some of my promises really only need to be checked once in a while.  

For example, I have an SSH banner file, that never actually changes, but it 
needs to be setup the first time a system is installed, and ssh needs to be 
configured to display it.  

Currently: 

files:
   sshserver::
 "/etc/ssh_banner"
            handle      => "copy_over_the_ssh_banner",
            perms       => mog("444", "root", "root"),
            copy_from   => secure_cp("$(src_dir)/ssh_banner", 
"@(g.policy_server)"),
            classes     => if_repaired("ssh_banner_repaired");




When I added, "ifelapsed   => if_elapsed("1440"),"  (only check this once a 
day, it never changes) I get:
 Constraint lvalue 'ifelapsed' is not allowed in bundle category 'files',


Thoughts? comments?

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

Reply via email to