CentOS 7.x Rocks cluster 7.0 Customize compute node during installation
From Notes_Wiki
Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Customize compute node during installation
To customer compute node immediately after the OS installer completes use following steps:
- Create extend-compute.xml file using:
- cd /export/rocks/install/site-profiles/7.0/nodes/
- cp -i skeleton.xml extend-compute.xml #Dont overwrite existing file, if any
- Edit 'extend-compute.xml' and inside <post> and </post> enter bash script that should be executed during install. For example
- <post>
- yum -y install iotop
- echo "Configured" > /state/partition1/test.txt
- <!-- Do this before <eval shell="python"> section -->
- </post>
- Validate the xml file using:
- xmllint -noout extend-compute.xml
- Rebuild the compute node distribution
- cd /export/rocks/install/
- rocks create distro
- Test the build on a compute node (one where these packages are not installed yet)
- rocks set host boot <compute-node-hostname> action=install
- ssh <compute-node-hostname> "shutdown -r now"
Refer:
Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Customize compute node during installation