Forum: Cfengine Help
Subject: Edit two files. The second is never updated.
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,20055,20055#msg-20055

Hi list,

I'm running Community Ed. 3.1.2 on Solaris 10.

I have two simple bundles that works. My problem is that cfengine says that
promise has allready been verified when executing the second one. If cron.allow
don't exist an empty file is created. If I change the line to be added, in the
second bundle, line is added. 

Any ideas?



bundle agent at_allow
{
    files:
        "/etc/cron.d/at.allow"
            perms => mog(0644,root,sys),
            create => "true",
            edit_defaults => std_defs,
            edit_line => create_file("oracle");
}

bundle agent cron_allow
{
    files:
        "/etc/cron.d/cron.allow"
            perms => mog(0644,root,sys),
            create => "true",
            edit_defaults => std_defs,
            edit_line => create_file("oracle");
}



I run them with:



"any" usebundle => at_allow;
"any" usebundle => cron_allow;



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

Reply via email to