Markus Baertschi wrote:
I'm working on the installation for a new linux cluster. All nodes are identical except for hostname and IP.
Today some scripts generate an individual autoinst.xml and pxe config file pointing to the autoinst.xml for each node. These files are the same except for the (static) hostname and IP address. We want to keep static addresses.
I can reduce the 2 config files per node to two single files if I have a simple way to assign the correct hostname and static IP address during installation. We have dhcp set up to assign a fixed IP for each node.
if you are using dhcp to set the IP address, you can also use it to set the hostname (assuming that each system has an individual host entries) set the following in /etc/sysconfig/network/dhcp (although I think this is the default) DHCLIENT_SET_HOSTNAME="yes" what the above does is turn on the -H option to dhcpcd (see the man for dhcpcd for the details)
It looks like during post-install I can access the IP address in the hostname. (the hostname command returns the ip address). I suppose I can set the ip address using yast command line tools (yast lan edit id=0 ip=myip), but there seems to be no way to set the hostname using the command line. Can I just write the hostname into /etc/HOSTNAME ?
Is there a good reason I should remain with the individual pxe and autoinstall.xml files per node ?
Markus
I am always trying to cut the numbers of these files down. I would say that unless all of your nodes are unique in multiple ways (which that should not really be the case for a cluster), I would say try and consolidate. -- Jim Michaud SiCortex IT Director -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org