#!/bin/bash

function install_sshpass() {
    log_info "install package sshpass."
    rpm -Uvh Install_Packages/sshpass-1.06-2.el7.x86_64.rpm
}

function install_jq() {
    log_info "install package jq."
    rpm -Uvh Install_Packages/oniguruma-5.9.5-3.el7.x86_64.rpm
    rpm -Uvh Install_Packages/jq-1.5-1.el7.x86_64.rpm
}

function install_requirements() {
    install_sshpass
    if [ "$REGION" == "subregion" ]; then
        install_jq
    fi
}