CentOS 7.x Rocks cluster 7.0 Build rolls server

From Notes_Wiki

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:

  1. Disable firewalld
    systemctl stop firewalld
    systemctl disable firewalld
  2. Disable selinux by editing '/etc/selinux/config' as:
    SELINUX=disabled
    Also run
    setenforce 0
  3. Download all required rolls from http://central-7-0-x86-64.rocksclusters.org/isos/ on admin Desktop
  4. Install httpd using:
    yum install -y httpd
  5. Start & enable httpd
    systemctl start httpd
    systemctl enable httpd
  6. Install git
    yum install -y git
  7. Clone roll-server github repository related to rocksclusters project using:
    cd /root
    git clone https://github.com/rocksclusters/roll-server.git
  8. 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
  9. 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)
  10. Copy index.cgi file
    cp index.cgi /var/www/html/install/rolls
  11. 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>
  12. Optionally delete welcome.conf which stops DocumentRoot from being Indexed
    cd /etc/httpd/conf.d
    rm -f welcome.conf
  13. Restart web server
    systemctl restart httpd
  14. Open web browser and check
    1. http://rolls.rnd.com/
    2. 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