#-----------------------------------------------------------
create_networkconfig() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_create_networkconfig[collapsed=true]\r\e[0KGenerating network configuration ..."
echo
echo "${HASH_LINE}"
echo
echo "Inhalt von /etc/sysconfig/network-scripts ..."
ls -lA /etc/sysconfig/network-scripts
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_create_networkconfig\r\e[0K"
}
create_networkconfig
#-----------------------------------------------------------
tweak_systemd() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_tweak_systemd[collapsed=true]\r\e[0KTweaking systemd ..."
echo
echo "${HASH_LINE}"
echo
ln -sv "${getty_svc}" "${glink}"
done
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_tweak_systemd\r\e[0K"
}
tweak_systemd
local grub_cfg="/etc/default/grub"
if [[ -f "${grub_cfg}" ]] ; then
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_tweak_grub[collapsed=true]\r\e[0KTweaking grub ..."
echo
echo "${HASH_LINE}"
echo
echo "Recreating /boot/grub2/grub.cfg ..."
grub2-mkconfig -o /boot/grub2/grub.cfg
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_tweak_grub\r\e[0K"
fi
}
local fstab="/etc/fstab"
if [[ -f "${fstab}" ]] ; then
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_setup_tmp_tmpfs[collapsed=true]\r\e[0KSetting up /tmp as a tmpfs ..."
echo
echo "${HASH_LINE}"
echo
echo 'tmpfs /tmp tmpfs nosuid,size=10% 0 0' >>"${fstab}"
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_setup_tmp_tmpfs\r\e[0K"
fi
}
#-----------------------------------------------------------
set_rsyslogd_el7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_rsyslogd_el7[collapsed=true]\r\e[0KConfiguring Rsyslogd ..."
echo
echo "${HASH_LINE}"
echo "Calling set_rsyslogd_el7() ..."
echo
ls -l /etc/rsyslog.conf* /etc/rsyslog.d/*
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_rsyslogd_el7\r\e[0K"
}
set_rsyslogd_el7
#-----------------------------------------------------------
set_rsyslogd_el8() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_rsyslogd_el8[collapsed=true]\r\e[0KConfiguring Rsyslogd ..."
echo
echo "${HASH_LINE}"
echo "Calling set_rsyslogd_el8() ..."
echo
ls -l /etc/rsyslog.conf* /etc/rsyslog.d/*
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_rsyslogd_el8\r\e[0K"
}
set_rsyslogd_el8
#-----------------------------------------------------------
clear_all_repo_files() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_clear_all_repo_files[collapsed=true]\r\e[0KCleaning all exiting repo files ..."
echo
echo "${HASH_LINE}"
echo
cp -v /dev/null "${repo_file}"
done
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_clear_all_repo_files\r\e[0K"
}
clear_all_repo_files
#-----------------------------------------------------------
get_repos_centos7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_get_repos_centos7[collapsed=true]\r\e[0KGet yum repository files ..."
echo
echo "${HASH_LINE}"
echo "Calling get_repos_centos7() ..."
rm -fv "${tmp_file}"
done
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_get_repos_centos7\r\e[0K"
}
get_repos_centos7
#-----------------------------------------------------------
get_repos_el7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_get_repos_el7[collapsed=true]\r\e[0KGet yum repository files ..."
echo
echo "${HASH_LINE}"
echo "Calling get_repos_el7() ..."
rm -fv "${tmp_file}"
done
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_get_repos_el7\r\e[0K"
}
get_repos_el7
#raw
#-----------------------------------------------------------
-get_repos_centos7() {
+get_repos_oel7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_get_repos_oel7[collapsed=true]\r\e[0KGet yum repository files ..."
echo
echo "${HASH_LINE}"
- echo "Calling get_repos_centos7() ..."
+ echo "Calling get_repos_oel7() ..."
echo
local base_url="${COBBLER_URL}/${ws_rel_filesdir}/${system_status}/repos/oel7"
rm -fv "${tmp_file}"
done
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_get_repos_oel7\r\e[0K"
}
-get_repos_centos7
+get_repos_oel7
#end raw
#-----------------------------------------------------------
init_yum_repos() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_init_yum_repos[collapsed=true]\r\e[0KInit yum repositories ..."
echo
echo "${HASH_LINE}"
echo
yum clean all
yum makecache
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_init_yum_repos\r\e[0K"
}
init_yum_repos
#-----------------------------------------------------------
set_bashrc_el7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_bashrc_el7[collapsed=true]\r\e[0KRewriting /etc/bashrc ..."
echo
echo "${HASH_LINE}"
echo "Calling set_bashrc_el7() ..."
echo "[$(date)]: Could not install bash-completion" | tee -a "${ERROR_POINTER}"
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_bashrc_el7\r\e[0K"
}
set_bashrc_el7
#-----------------------------------------------------------
set_bashrc_centos8() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_bashrc_centos8[collapsed=true]\r\e[0KRewriting /etc/bashrc ..."
echo
echo "${HASH_LINE}"
echo "Calling set_bashrc_centos8() ..."
echo "[$(date)]: Could not install bash-completion" | tee -a "${ERROR_POINTER}"
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_bashrc_centos8\r\e[0K"
}
set_bashrc_centos8
#-----------------------------------------------------------
set_locales_centos8() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_locales_centos8[collapsed=true]\r\e[0KInstalling german locales ..."
echo
echo "${HASH_LINE}"
echo "Calling set_locales_centos8() ..."
echo "[$(date)]: Could not install german locales (langpacks-de)" | tee -a "${ERROR_POINTER}"
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_locales_centos8\r\e[0K"
}
set_locales_centos8
#-----------------------------------------------------------
set_vimrc_el7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_vimrc_el7[collapsed=true]\r\e[0KRewriting /etc/vimrc ..."
echo
echo "${HASH_LINE}"
echo "Calling set_vimrc_el7() ..."
fi
rm -fv "${tmp_file}"
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_vimrc_el7\r\e[0K"
}
set_vimrc_el7
#-----------------------------------------------------------
set_vimrc_centos8() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_set_vimrc_centos8[collapsed=true]\r\e[0KGet yum repository files ..."
echo
echo "${HASH_LINE}"
echo "Calling set_vimrc_centos8() ..."
fi
rm -fv "${tmp_file}"
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_set_vimrc_centos8\r\e[0K"
}
set_vimrc_centos8
#-----------------------------------------------------------
install_pkgs_el7() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_install_pkgs_el7[collapsed=true]\r\e[0KInstalling additional packages ..."
echo
echo "${HASH_LINE}"
echo "Calling install_pkgs_el7() ..."
[color]
ui = true
EOF
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_install_pkgs_el7\r\e[0K"
}
install_pkgs_el7
#-----------------------------------------------------------
install_pkgs_centos8() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_install_pkgs_centos8[collapsed=true]\r\e[0KInstalling additional packages ..."
echo
echo "${HASH_LINE}"
echo "Calling install_pkgs_centos8() ..."
[color]
ui = true
EOF
+
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_install_pkgs_centos8\r\e[0K"
}
install_pkgs_centos8
#-----------------------------------------------------------
remove_uek_packages() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_remove_uek_packages[collapsed=true]\r\e[0KRemoving Oracle UEK packages ..."
echo
echo "${HASH_LINE}"
echo "Calling remove_uek_packages() ..."
echo "Removing UEK packages not necessary."
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_remove_uek_packages\r\e[0K"
}
remove_uek_packages
#-----------------------------------------------------------
dist_upgrade() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_dist_upgrade[collapsed=true]\r\e[0KUpgrading all packages ..."
echo
echo "${HASH_LINE}"
echo "Calling dist_upgrade() ..."
echo "[$(date)]: Upgrading system not successful." | tee -a "${ERROR_POINTER}"
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_dist_upgrade\r\e[0K"
}
dist_upgrade
#-----------------------------------------------------------
create_motd() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_create_motd\r\e[0KCreating initial MOTD ..."
echo
echo "${HASH_LINE}"
echo "Calling create_motd() ..."
fi
rm -fv "${mk_script}"
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_create_motd\r\e[0K"
}
create_motd
#-----------------------------------------------------------
disable_root_ssh_login_pw() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_disable_root_ssh_login_pw[collapsed=true]\r\e[0KDisabling SSH access for root with password ..."
echo
echo "${HASH_LINE}"
echo "Calling disable_root_ssh_login_pw() ..."
echo "PermitRootLogin without-password" >> /etc/ssh/sshd_config
fi
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_disable_root_ssh_login_pw\r\e[0K"
}
disable_root_ssh_login_pw
#-----------------------------------------------------------
install_legato() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_install_legato[collapsed=true]\r\e[0KInstalling Legato networker client ..."
echo
echo "${HASH_LINE}"
echo "Calling install_legato() ..."
mkdir -pv /nsr/res
echo "legato01.pixelpark.com" > /nsr/res/servers
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_install_legato\r\e[0K"
}
install_legato
#-----------------------------------------------------------
perform_chrony() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_perform_chrony[collapsed=true]\r\e[0KInstalling and configuring Chrony ..."
if deinstall_ntp ; then
if install_chrony ; then
echo
done
echo >> /etc/chrony.keys
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_perform_chrony\r\e[0K"
}
perform_chrony
#-----------------------------------------------------------
install_puppet() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_install_puppet[collapsed=true]\r\e[0KInstalling Puppet agent ..."
+
local pplabs_conf_dir="/etc/puppetlabs"
local puppet_conf_dir="${pplabs_conf_dir}/puppet"
local puppet_conf_file="${puppet_conf_dir}/puppet.conf"
echo "Disabling service puppet ..."
systemctl disable puppet
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_install_puppet\r\e[0K"
}
install_puppet
#-----------------------------------------------------------
install_postfix() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_install_postfix[collapsed=true]\r\e[0KInstalling and configuring Postfix ..."
echo
echo "${HASH_LINE}"
echo "Calling install_postfix() ..."
postconf -M
echo
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_install_postfix\r\e[0K"
}
install_postfix
#-----------------------------------------------------------
config_logrotate() {
+ echo -e "\e[0Ksection_start:$( date +%s ):ks_config_logrotate[collapsed=true]\r\e[0KConfiguring logrotation ..."
echo
echo "${HASH_LINE}"
echo "Calling config_logrotate() ..."
rm -v "${tmp_file}"
echo "Finished logrotate configuration."
+ echo -e "\e[0Ksection_end:$( date +%s ):ks_config_logrotate\r\e[0K"
}
config_logrotate