Forum: Cfengine Help Subject: Re: Cfengine Help: rather complex scenario (pkg install+configure - if necessary) Author: ticketo Link to topic: https://cfengine.com/forum/read.php?3,21559,21593#msg-21593
I already did that multiple times and I'm not quite sure what you are referring to. If it's about how to do the single steps - I can do this. The steps "install a package", "deploy a file", "customize a file", etc. are solved. If it's about chapter "2.1.2 Variation in hosts" then it's a bit simplistic. It would mean that I have to manually change the cfengine configuration if I add just one more host - and manually keep track of every change. I think i saw someone announcing classes based on lspci's output (or similar). This would help a lot. However I still have no clue how to write bundle 3. Maybe split it up into 2 bundles. Bundle 3a) verifies that postfix is present and sets an appropriate class and Bundle 3b) acts only if that class is present and configures postfix - if it's not present then the config is removed. (Perhaps it is possible to roll all of this into one bundle, at least it works this way with sysctl - edit the config file, set a class if it has changed and issue "sysctl -p" if the class is set. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine