Install Code Search on a separate RHEL/CentOS 7.3 server

Follow these instructions to install TeamForge Code Search on a separate RHEL/CentOS 7.3 server.

Attention: Installing or upgrading TeamForge needs root privileges. You must log on as root or use a root shell to install or upgrade TeamForge.
  1. Install Red Hat Enterprise Linux/CentOS 7.3 and log in as root.
  2. Check your basic networking setup. See Set up networking for your TeamForge server for details.
  3. Configure your TeamForge installation repository.
    • TeamForge installation repository configuration for sites with internet access
    1. Contact the CollabNet Support and download the TeamForge 17.1 installation repository package to /tmp.
    2. Install the repository package.
      • yum install -y /tmp/collabnet-teamforge-repo-17.1-1.noarch.rpm
    3. Refresh your repository cache.
      • yum clean all
    • TeamForge installation repository configuration for sites without internet access
    1. Contact the CollabNet Support to get the auxiliary installer package for TeamForge 17.1 disconnected installation and save it in /tmp.
      • Red Hat Enterprise Linux/CentOS 7.3 64 bit RPM package: CTF-Disconnected-media-17.1.524-23.rhel7.x86_64.rpm
        Note: In addition to the above CentOS 7.3 64 bit RPM package, you must get the following CentOS 7.3 compatibility RPM, which is required for TeamForge 17.1 disconnected media installation on CentOS 7.3 profile: compat-ctf-dc-media-1.0-1.el7.centos.noarch.rpm.
    2. Unpack the disconnected installation package.
      • rpm -ivh <package-name>
    3. Unpack the compat-ctf-dc-media-1.0-1.el7.centos.noarch.rpm package if you are installing TeamForge 17.1 on CentOS 7.3.
      • rpm -ivh compat-ctf-dc-media-1.0-1.el7.centos.noarch.rpm
    4. Note: If the Red Hat Enterprise Linux/CentOS installation DVD is mounted already, skip the following instructions. If not, mount the DVD.
      Mount the Red Hat Enterprise Linux/CentOS installation DVD. The DVD contains the necessary software and utilities required for installing TeamForge without internet access.

      In the following commands, replace "cdrom" with the identifier for your server's CD/DVD drive, if necessary.

      • cd /media/
      • mkdir cdrom
      • mount /dev/cdrom ./cdrom/

      If there are any spaces in the automount, unmount it first and mount it as a filepath, with no spaces.

    5. Create a yum configuration file that points to the Red Hat Enterprise Linux/CentOS installation DVD.
      • vi /etc/yum.repos.d/cdrom.repo
      Here's a sample yum configuration file.
      [RHEL-CDROM] 
      name=RHEL CDRom 			
      baseurl=file:///media/cdrom/Server/
      gpgfile=file:///media/cdrom/RPM-GPG-KEY-redhat-release 
      enabled=1
      gpgcheck=0
    6. Verify your yum configuration files.
      • yum list httpd
      • yum list apr
  4. Install Code Search.
    • yum install teamforge-codesearch
  5. Copy the site-options.conf file from the Application Server to the /opt/collabnet/teamforge/etc/site-options.conf directory of the Code Search Server.
  6. Configure the the site-options.conf file.
    1. Configure the services and domain name tokens.
      Important: If you choose not to use the Application Server's site-options.conf file, then don't forget to copy the value of AUTO_DATA token from the Application Server.
      my.codesearch.host:SERVICES = codesearch
      my.app.host:SERVICES = ctfcore ctfcore-database mail search etl ctfcore-datamart subversion 
      cvs gerrit gerrit-database binary binary-database reviewboard reviewboard-database
      Note: The above example lists all possible services that could run on the TeamForge Application Server. You may have to adjust the list of services for my.app.host:SERVICES token to suit your site's distributed server setup, if required.
  7. Save the site-options.conf file.
  8. Link the local TeamForge directories to the directories on NetApp.
    • sudo mkdir -p /shared/var
    • sudo mkdir -p /opt/collabnet/teamforge
    • sudo mv /opt/collabnet/teamforge/var /opt/collabnet/teamforge/var_old
    • sudo ln -s /shared/var /opt/collabnet/teamforge
  9. Deploy services.
    • /opt/collabnet/teamforge/bin/teamforge provision

    The "provision" command prompts for response before it bootstraps or migrates data during TeamForge installation and upgrade respectively. Enter "Yes" or "No" to proceed. For more information, see The teamforge script.