Skip to main content

Uniphore Customer Portal

Download Ansible Code
  1. Download the Ansible code from the release package.

  2. Unzip the .tar file available in U-Analyze2.15.1.0_Anisble/infra.

  3. Run the Install.sh script as mentioned below:

    #!/bin/bash
    
    echo " Installtion of Python 3.8 "
    
    sudo yum -y update
    
    sudo yum -y groupinstall "Development Tools"
    
    sudo yum -y install openssl-devel bzip2-devel
    libffi-devel xz-devel
    
    echo " checking if gcc --version is available or not
    "
    
    echo "
    ========================================================================="
    
    echo " installing wget package "
    
    sudo yum -y install wget
    
    wget
    https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
    
    echo " =================================Extracting
    the Python 3.8 ==========================="
    
    tar xvf Python-3.8.12.tgz
    
    cd Python-3.8*/
    
    ./configure --enable-optimizations
    
    sudo make altinstall
    
    echo " Checking Python version "
    
    python3.8 --version
    
    echo " checking pip version "
    
    pip3.8 --version
    
    echo " Installation of terraform "
    
    sudo yum install -y yum-utils
    
    sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
    
    sudo yum -y install terraform
    
    rm -r ~/requirements.txt
    
    rm -r ~/requirements.yml
    
    touch ~/.bashrc
    
    terraform -install-autocomplete
    
    echo 'ansible-core==2.11.1
    
    awscli==1.19.97
    
    boto3==1.17.97
    
    botocore==1.20.97
    
    cryptography==3.4.7
    
    setuptools_rust==0.12.1'>>~/requirements.txt
    
     
    
    echo '---
    
    collections:
    
      - amazon.aws
    
      -
    community.general
    
      - ansible.posix
    
      -
    community.docker
    
      -
    community.mongodb
    
     
    
    roles:
    
      - src:
    https://github.com/StephenSorriaux/ansible-kafka-admin
    
        name: kafka_lib
    
    '>>~/requirements.yml
    
     
    
    pip3.8 install -r ~/requirements.txt
    
    ansible-galaxy install -r ~/requirements.yml
    
     
    
    echo "Installing Java"
    
    sudo yum -y install java
    
     
    
    echo "Installation of Maven"
    
    #wget https://dlcdn.apache.org/maven/maven-3/3.8.4/binaries/apache-maven-3.8.4-bin.tar.gz
    
    wget
    https://nec-packages.s3.us-east-2.amazonaws.com/apache-maven-3.8.4-bin.tar.gz
    
    tar -xvf apache-maven-3.8.4-bin.tar.gz
    
    sudo mv apache-maven-3.8.4 /opt/maven
    
    cat <<EOF | sudo tee /etc/profile.d/maven.sh
    
    export MAVEN_HOME=/opt/maven
    
    export PATH=\$PATH:\$MAVEN_HOME/bin
    
    EOF
    
    source /etc/profile.d/maven.sh
    
    echo $MAVEN_HOME
    
    cd /opt/maven
    
    echo $PATH
    
    mvn --version
    
    source /etc/profile.d/maven.sh
    
  4. If you want to upgrade from the previous version 2.15, follow the steps given below:

    1. If there is any change in your database details update the details as follows.

    2. Navigate to the path:

      ansible/environments/uanalyze/group_vars/all/1_thirdparty_services_vars.yml
    3. Update the database details that follow:

      • postgresql_database

      • postgresql_password

    Note

    To upgrade from 2.15 to 2.15.1, no need to create servers in terraform.