From: Frank Brehm Date: Wed, 11 Apr 2018 10:33:00 +0000 (+0200) Subject: Cosmetics X-Git-Tag: 0.1.1~55 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=c2734e86f2c9f9e8bf3317b5a0bf7970253b2eb1;p=pixelpark%2Fcreate-vmware-tpl.git Cosmetics --- diff --git a/bin/postinst b/bin/postinst index 564e830..d3bb257 100644 --- a/bin/postinst +++ b/bin/postinst @@ -1,7 +1,7 @@ #!/bin/bash -HASH_LINE="###############################" +HASH_LINE="#######################################################################################" COBBLER_URL="http://192.168.88.8" echo "$(date --rfc-3339=seconds): Das ist das Post-Install-Script '$0'." @@ -46,6 +46,8 @@ log() { #----------------------------------------------------------- create_authkeys() { + echo + echo "${HASH_LINE}" echo local url="${COBBLER_URL}/custom/create-vmware-tpl/keys/auth_keys_pp_betrieb" @@ -70,6 +72,8 @@ create_authkeys() { #----------------------------------------------------------- import_ssh_hostkeys() { + echo + echo "${HASH_LINE}" echo log "Importing SSH host keys ..." @@ -102,6 +106,8 @@ import_ssh_hostkeys() { #----------------------------------------------------------- create_etc_hosts() { + echo + echo "${HASH_LINE}" echo log "Generating /etc/hosts ..." @@ -117,6 +123,8 @@ create_etc_hosts() { #----------------------------------------------------------- set_hostname() { + echo + echo "${HASH_LINE}" echo log "Setting hostname ${hostname} ..." hostnamectl set-hostname --static "${hostname}" @@ -130,6 +138,8 @@ set_hostname() { disable_ipv6() { local sysctl_file="/etc/sysctl.d/99-disable-ipv6.conf" echo + echo "${HASH_LINE}" + echo log "Disabling IPv6 in '${sysctl_file}' ..." mkdir -pv /etc/sysctl.d echo "#disable ipv6" | tee -a "${sysctl_file}" @@ -162,6 +172,8 @@ get_ifname() { #----------------------------------------------------------- install_network() { + echo + echo "${HASH_LINE}" echo log "Generating network configuration ..." @@ -224,6 +236,8 @@ install_network() { #----------------------------------------------------------- manage_dns() { + echo + echo "${HASH_LINE}" echo log "Generating /etc/resolv.conf ..." @@ -242,6 +256,8 @@ manage_dns() { #----------------------------------------------------------- tweak_systemd() { + echo + echo "${HASH_LINE}" echo log "Tweaking systemd ..." @@ -272,6 +288,8 @@ tweak_grub() { local grub_cfg="/etc/default/grub" if [[ -f "${grub_cfg}" ]] ; then + echo + echo "${HASH_LINE}" echo log "Tweaking '${grub_cfg}' ..." @@ -293,6 +311,8 @@ tweak_grub() { #----------------------------------------------------------- install_epel() { + echo + echo "${HASH_LINE}" echo log "Install EPEL repository package ..." @@ -346,6 +366,8 @@ install_epel() { #----------------------------------------------------------- install_pp_tcsh_env() { + echo + echo "${HASH_LINE}" echo log "Pulling pixelpark TCSH config .." @@ -368,6 +390,8 @@ install_pp_tcsh_env() { #----------------------------------------------------------- make_pp_dirs() { + echo + echo "${HASH_LINE}" echo log "Creating Pixelpark directories ..." for bname in bin etc man ; do @@ -381,9 +405,13 @@ misc_packages() { local misc_pkgs="ksh tmux vim telnet curl git" local misc_pkgs_remove="deltarpm nfs* rpcbind abrt*" + echo + echo "${HASH_LINE}" echo "Disabling mysql-community in /etc/yum.conf ..." echo "exclude=mysql-community*" >> /etc/yum.conf + echo + echo "${HASH_LINE}" echo log "Installing NetworkManager ..." yum install -y NetworkManager NetworkManager-config-server NetworkManager-tui @@ -418,6 +446,8 @@ misc_packages() { #----------------------------------------------------------- remove_ipv6_localhost() { + echo + echo "${HASH_LINE}" echo log "Removing ::1 from /etc/hosts ..." @@ -428,6 +458,8 @@ remove_ipv6_localhost() { #----------------------------------------------------------- create_motd() { + echo + echo "${HASH_LINE}" echo local url="${COBBLER_URL}/custom/pp-scripts/mk_create_motd.ksh" @@ -450,6 +482,8 @@ install_legato_networker() { local url_client="${COBBLER_URL}/custom/legato/lgtoclnt-latest.x86_64.rpm" local url_man="${COBBLER_URL}/custom/legato/lgtoman-latest.x86_64.rpm" + echo + echo "${HASH_LINE}" echo log "Installing Legato networker client ..." @@ -466,6 +500,8 @@ install_legato_networker() { #----------------------------------------------------------- install_ntp() { + echo + echo "${HASH_LINE}" echo log "Deinstalling chrony from whatever reason ..." echo "Stopping chronyd ..." @@ -510,6 +546,8 @@ install_ntp() { #----------------------------------------------------------- install_openvm_tools() { + echo + echo "${HASH_LINE}" echo log "Installing open-vm-tools ..." @@ -526,6 +564,8 @@ install_openvm_tools() { #----------------------------------------------------------- remove_uek_packages() { + echo + echo "${HASH_LINE}" echo log "Switch kernel in /etc/sysconfig/kernel ..." @@ -546,6 +586,8 @@ remove_uek_packages() { #----------------------------------------------------------- dist_upgrade() { + echo + echo "${HASH_LINE}" echo log "Upgrading all packages ..." echo @@ -561,6 +603,8 @@ install_puppet() { local puppet_conf_file="${puppet_conf_dir}/puppet.conf" local facter_conf_dir="${pplabs_conf_dir}/facter/facter.d" + echo + echo "${HASH_LINE}" echo log "Installing Puppet agent ..." echo @@ -640,6 +684,8 @@ install_puppet() { #----------------------------------------------------------- disable_floppy() { + echo + echo "${HASH_LINE}" echo log "Disabling floppy kernel module ..." @@ -652,6 +698,8 @@ disable_floppy() { #----------------------------------------------------------- set_root_pw() { + echo + echo "${HASH_LINE}" echo log "Setting root password ..." usermod -p "${ROOT_PW_CRYPTED}" root @@ -661,6 +709,8 @@ set_root_pw() { #----------------------------------------------------------- disable_root_login_pw() { + echo + echo "${HASH_LINE}" echo log "Disabling SSH access for root with password ..." @@ -671,6 +721,8 @@ disable_root_login_pw() { #----------------------------------------------------------- install_clamav() { + echo + echo "${HASH_LINE}" echo log "Installing and configuring ClamAV ..." @@ -692,6 +744,8 @@ install_clamav() { #----------------------------------------------------------- install_postfix() { + echo + echo "${HASH_LINE}" echo log "Installing and configuring Postfix ..." @@ -851,6 +905,8 @@ install_postfix() { #----------------------------------------------------------- config_rsyslog_to_remote() { + echo + echo "${HASH_LINE}" echo log "Adding loghost to rsyslog configuration ..."