CentOS 7.x Rocks cluster 7.0 Build rolls server
From Notes_Wiki
Revision as of 12:31, 10 May 2022 by Saurabh (talk | contribs) (Created page with "Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Build rolls server We can build a rolls server to setup master node using a CentOS 7 machine. To setup rolls on a CentOS 7 machine use: # Disable firewalld #:<pre> #:: systemctl stop firewalld #:: systemctl disable firewalld #:</pre> # Disable selinux by editing '<tt>/etc/selinux/config</tt>' as: #:<pre> #:: SELINUX=disabled #:</pre> #: Also run #::...")
Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Build rolls server
We can build a rolls server to setup master node using a CentOS 7 machine. To setup rolls on a CentOS 7 machine use:
- Disable firewalld
- systemctl stop firewalld
- systemctl disable firewalld
- Disable selinux by editing '/etc/selinux/config' as:
- SELINUX=disabled
- Also run
- setenforce 0
- Download all required rolls from http://central-7-0-x86-64.rocksclusters.org/isos/ on admin Desktop
- Install httpd using:
- yum install -y httpd
- Start & enable httpd
- systemctl start httpd
- systemctl enable httpd
- Install git
- yum install -y git
- Clone roll-server github repository related to rocksclusters project using:
- cd /root
- git clone https://github.com/rocksclusters/roll-server.git
- Mount the download folder from admin desktop containing all downloaded ISOs to CentOS7 rolls server using sshfs:
- yum -y install epel-release
- yum -y install sshfs
- mkdir /mnt/roll-server
- sshfs root@<admin-station>:<Download-folder-with-only-rolls-iso-files> /mnt/roll-server
- If this sshfs based mounting is not desired you can simply copy all the roll ISOs to /mnt/roll-server folder on rolls server
- Copy rolls (iso images) to web directory
- cd /root/roll-server
- for A in $(ls -1 /mnt/roll-server/*.iso); do echo $A; ./rollcopy.sh $A /var/www/html; done
- The above command copies all the rolls to /var/www/html folder (Default DocumentRoot)
- Copy index.cgi file
- cp index.cgi /var/www/html/install/rolls
- Add below lines in apache configuration at '/etc/httpd/conf/httpd.conf'
- # allow all access to the rolls RPMS
- <Directory /var/www/html/install/rolls>
- AddHandler cgi-script .cgi
- Options FollowSymLinks Indexes ExecCGI
- DirectoryIndex /install/rolls/index.cgi
- Allow from all
- </Directory>
- Optionally delete welcome.conf which stops DocumentRoot from being Indexed
- cd /etc/httpd/conf.d
- rm -f welcome.conf
- Restart web server
- systemctl restart httpd
- Open web browser and check
- http://rolls.rnd.com/
- http://rolls.rnd.com/install/rolls
- On /install/rolls page instead of default directory Index by apache, a different kind of list should appear
Ref:
Home > CentOS > CentOS 7.x > CentOS 7.x Rocks cluster 7.0 > CentOS 7.x Rocks cluster 7.0 Build rolls server