Displaying 1 result from an estimated 1 matches for "dbprod1".
Did you mean:
dbprd01
2009 Feb 27
4
Banging my head on wall (hosts)
Ok, so I figured I''d move this here since IRC isn''t the place for it.
Ok, so I have my 40ish servers. Of those, 36 or so of them have hosts
entries that need to look like this:
127.0.0.1 localhost
172.x.x.x dbprod1.xxx.com dbprod1
172.x.x.x mgmt01.xxx.com mgmt01 puppet certmaster
172.x.x.x mybox.xxx.com mybox
Where mybox is the name of the box.
The others have a few additional entries.
So, I made a class that creates those hosts entries and I include it on my
host.
Part of the class does this:
host...