Forum: CFEngine Help Subject: Don't know how to do for having only links that i want Author: stchesmeli Link to topic: https://cfengine.com/forum/read.php?3,24769,24769#msg-24769
Hello all,here my trouble: I want to have only certains links into a directory and anything else. It's simple to verify thats links are present and not broken with a file promise. I use: bundle agent my_bundle { vars: "my_links" slist => { "foo", "bar" }; files: "/my/dir/$(my_links)" link_from => ln_s("/my/other/dir/$(my_links)") } But i don't know how to do for remove all other links (or files) that will be present inside "/my/dir" in a convergent way (i can purge the entire dir before making links but it's not convergent). Maybe with the result of "ls" command and compare slist ? Have you other method, a best practice ? Thanks :) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine