<commit_before>#!/bin/bash

printf "\n"
printf "************************************************\n"
printf "**         Inicialización de Servidor         **\n"
printf "************************************************\n"
printf "\n"

printf "== Parametros de Servidor\n\n"

read -p "Hostname (miryam): " server_hostname
read -p "Cluster (cl.wktapp.com): " cluster_hostname

printf "\n"

printf "== Parametros de Configuracion para MySQL\n\n"

read -p "Password de root: " mysql_root_password

printf "\n"

printf "== Parámetros de Usuario de Control\n\n"
read -p "username:   " ssh_username
read -p "password:   " ssh_password

printf "\n"

printf "************************************************\n"
printf "**         Confirmar la configuración         **\n"
printf "\n"
printf "Hostname: $server_hostname\n"
printf "Cluster:  $cluster_hostname\n"
printf "\n"
printf "MySQL Root Password: $mysql_root_<PASSWORD>"
printf "\n"
printf "SSH Username: $ssh_username\n"
printf "SSH Password: $<PASSWORD>"
printf "\n"

while true; do
    read -p "¿Es correcta esta configuración? [S o N] " yn
    case $yn in
        [Ss]* ) break;;
        [Nn]* ) exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

printf "\n"
printf "** Comienza la Configuracion... Tomará un tiempo \n\n"

yum -y upgrade
yum update

# Base Utils

./scripts/deltarpm.sh
./scripts/network-tools.sh
./scripts/wget.sh
./scripts/nano.sh

# Configuraciones Varias

./scripts/locale-fix.sh
./scripts-production/hostname.sh $server_hostname $cluster_hostname
./scripts/timezone-fix.sh

# Repositorios externos

./scripts/epel.sh
./scripts/webtatic.sh

# Instalacion de Utils

./scripts/git.sh
./scripts/htop.sh

# Configuracion de Usuarios

./scripts-production/user.sh $ssh_username $ssh_password<commit_msg>UPDATE: Instalación de bzip2 y tree en ambiente de produccion<commit_after>#!/bin/bash

printf "\n"
printf "************************************************\n"
printf "**         Inicialización de Servidor         **\n"
printf "************************************************\n"
printf "\n"

printf "== Parametros de Servidor\n\n"

read -p "Hostname (miryam): " server_hostname
read -p "Cluster (cl.wktapp.com): " cluster_hostname

printf "\n"

printf "== Parametros de Configuracion para MySQL\n\n"

read -p "Password de root: " mysql_root_password

printf "\n"

printf "== Parámetros de Usuario de Control\n\n"
read -p "username:   " ssh_username
read -p "password:   " ssh_password

printf "\n"

printf "************************************************\n"
printf "**         Confirmar la configuración         **\n"
printf "\n"
printf "Hostname: $server_hostname\n"
printf "Cluster:  $cluster_hostname\n"
printf "\n"
printf "MySQL Root Password: $<PASSWORD>"
printf "\n"
printf "SSH Username: $ssh_username\n"
printf "SSH Password: $<PASSWORD>"
printf "\n"

while true; do
    read -p "¿Es correcta esta configuración? [S o N] " yn
    case $yn in
        [Ss]* ) break;;
        [Nn]* ) exit;;
        * ) echo "Please answer yes or no.";;
    esac
done

printf "\n"
printf "** Comienza la Configuracion... Tomará un tiempo \n\n"

yum -y upgrade
yum update

# Base Utils

./scripts/deltarpm.sh
./scripts/network-tools.sh
./scripts/wget.sh
./scripts/nano.sh
./scripts/bzip2.sh
./scripts/tree.sh

# Configuraciones Varias

./scripts/locale-fix.sh
./scripts-production/hostname.sh $server_hostname $cluster_hostname
./scripts/timezone-fix.sh

# Repositorios externos

./scripts/epel.sh
./scripts/webtatic.sh

# Instalacion de Utils

./scripts/git.sh
./scripts/htop.sh

# Configuracion de Usuarios

./scripts-production/user.sh $ssh_username $ssh_password
{'fraction_non_alphanumeric': 0.208631115997801, 'fraction_numerical': 0.0005497526113249038, 'mean_word_length': 3.725974025974026, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6828875', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1234, 'n_words': 340}