Create node type - davidcarver/losf-cookbook GitHub Wiki

The example node type is "login". Node types are a category of nodes that can be applied to nodes later.

Configure the kickstart file to be used for the node type in /admin/losf/config/config.clustername

[Kickstarts]
login   = /admin/losf/kickstarts/standard.2drive.raid1

Configure the profile to be used for the node type in /admin/losf/config/config.clustername This should correspond with the profile used in cobbler. For example,

[root@master kickstarts]# cobbler profile list
   centos6-x86_64

So in config.clustername

[Profiles]
login   = centos6-x86_64

Configure losf to tell cobbler that this host should be managed in DNS in /admin/losf/config/config.clustername

[DNS-Enable]
login   = yes

Confgure losf to tell cobbler that this host should use a specific DNS server, which is usually the address of the master node in /admin/losf/config/config.clustername

[Name-Servers]
login   = 192.168.100.2

Configure losf to tell cobbler that this host should use a default search domain in /admin/losf/config/config.clustername

[Name-Servers-Search]
login   = clustername.tacc.utexas.edu

Configure losf to assign a regular expression of hostnames that will be treated as the node type. For example, this will assign the hostnames login1, login2, and login3 to the node type login in /admin/losf/config/config.machines

[clustername]

# Define unique domainname for this cluster

domainname = discovery.tacc.utexas.edu

# Define unique node types via hostname regular expressions

master = master2
login = login[1-3]

Create a directory for the configuration files associated with this new node type

[root@master]# mkdir /admin/losf/config/const_files/clustername/login

To finish adding the node type, run losf sync which will apply these changes.

[root@master config]# losf sync