Forum: Cfengine Help Subject: Re: Question about a goup of host Author: daveseff Link to topic: https://cfengine.com/forum/read.php?3,20898,20907#msg-20907
I manage CFengine for a large global bank. These are some of the approaches I've taken to help me organize hosts: I've created groups based on location. For example I know that hosts in my 10.10.10.0/24 subnet are my development servers in the US and hosts in my 10.10.20.0/24 are my QA servers in the US. so I create groups like: classes: "DEV" or => { ipv4_10_10_10 }; "QA" or => { ipv4_10_10_20 }; "US" or => { "DEV" "QA" }; I can then manage /etc/localtime, resolv.conf and any other machines in all of my data center locations. The nice thing is that new machines install pick up the configs without changing the cfengine configs. For machine specific I've used a module to create classes at run time to I can distinguish between Virts, different server classes, etc.. This was done via parsing the output of dmidecode and looking at the "Product" information. I can then create classes like: Proliant Proliant_DL585 ProLiant_DL585_G6 If I have machine specific RPMS or DEBS ( Like firmware ), I can let CFengine easily manage the application of these packages. Hope this helps you. -Dave _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine