Re: 50-host-classes

Andrew Ruthven <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hi Marc,

On Tue, 2022-04-26 at 14:27 +0000, Marc Hoppins via linux-fai wrote:

> The documentation leads one to the opinion that all hosts sit in the
> 50- file which makes it very unwieldy.

You can split it up into whatever files you want. You'll just want to
be careful if you have multiple files that match as the last match
would be what is used. FAI processes the files in the class directory
in shell sorting order.

We also use multiple Perl scripts that perform a regexes on the
hostname and sets classes that way. One script perl per cluster type or
customer.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
[email protected] |
Catalyst Cloud: | This space intentionally left blank
https://catalystcloud.nz |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.