- '@base'
- 'bash-completion'
- 'bc'
- # - 'bind-utils'
- 'chrony'
- 'curl'
- # - 'git'
- # - 'iotop'
- 'lsof'
- # - 'mailx'
- 'man'
- # - 'mlocate'
- 'net-tools'
- # - 'postfix'
- 'psmisc'
- # - 'rsync'
- # - 'strace'
- # - 'sysstat'
- # - 'tcpdump'
- # - 'telnet'
- 'tmux'
- # - 'traceroute'
- 'vim'
- 'wget'
- # - 'yum-utils'
- '-iwl*'
- '-mysql-community*'
- '-nfs*'
- '-rpcbind'
+ - '-sysstat'
snippets:
- 'tpl.001.basics.sh'
- 'tpl.010.authkeys.sh'
- 'tpl.060.tweak_systemd.sh'
- 'tpl.070.tweak_grub.sh'
- 'tpl.074.tmp-tmpfs-el7.sh'
- # - 'tpl.080.rsyslogd-el7.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.170.repos_centos7.sh'
- 'tpl.175.repos_el7.sh'
- 'tpl.200.init-repos.sh'
- # - 'tpl.205.bashrc-el7.sh'
- 'tpl.225.vimrc-el7.sh'
- 'tpl.250.pkgs-el7.sh'
- 'tpl.280.dist-upgrade.sh'
- # - 'tpl.300.create-motd.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.400.chrony.sh'
- 'tpl.450.puppet.sh'
- # - 'tpl.470.postfix.sh'
- # - 'tpl.500.logrotate.sh'
- 'tpl.999.finish.sh'
- 'NetworkManager-config-server'
- 'bash-completion'
- 'bc'
- # - 'bind-utils'
- 'chrony'
- 'cloud-init'
- 'curl'
- 'dbus'
- # - 'git'
- # - 'grubby'
- # - 'iotop'
- # - 'langpacks-de'
- 'lsof'
- # - 'mailx'
- 'man'
- # - 'mlocate'
- 'net-tools'
- 'oddjob-mkhomedir'
- # - 'postfix'
- 'psmisc'
- # - 'rsync'
- # - 'strace'
- # - 'sysstat'
- # - 'tcpdump'
- # - 'telnet'
- 'tmux'
- # - 'traceroute'
- 'vim'
- 'wget'
- # - 'yum-utils'
- '-abrt*'
- '-iwl*'
- '-nfs*'
- 'tpl.060.tweak_systemd.sh'
- 'tpl.070.tweak_grub.sh'
- 'tpl.075.tmp-tmpfs.sh'
- # - 'tpl.080.rsyslogd-el8.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.180.repos_centos8.sh'
- 'tpl.185.repos_el8.sh'
- 'tpl.200.init-repos.sh'
- # - 'tpl.210.bashrc-el8.sh'
- # - 'tpl.220.locales-el8.sh'
- 'tpl.230.vimrc-el8.sh'
- 'tpl.250.pkgs-el8.sh'
- 'tpl.280.dist-upgrade.sh'
- # - 'tpl.300.create-motd.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.400.chrony.sh'
- 'tpl.450.puppet.sh'
- # - 'tpl.470.postfix.sh'
- # - 'tpl.500.logrotate.sh'
- 'tpl.999.finish.sh'
- '@base'
- 'bash-completion'
- 'bc'
- # - 'bind-utils'
- 'chrony'
- 'curl'
- # - 'git'
- # - 'iotop'
- 'lsof'
- # - 'mailx'
- 'man'
- # - 'mlocate'
- 'net-tools'
- # - 'postfix'
- 'psmisc'
- # - 'rsync'
- # - 'strace'
- # - 'sysstat'
- # - 'tcpdump'
- # - 'telnet'
- 'tmux'
- # - 'traceroute'
- 'vim'
- 'wget'
- # - 'yum-utils'
- '-iwl*'
- '-mysql-community*'
- '-nfs*'
- '-rpcbind'
+ - '-sysstat'
- '-*uek*'
snippets:
- 'tpl.001.basics.sh'
- 'tpl.060.tweak_systemd.sh'
- 'tpl.070.tweak_grub.sh'
- 'tpl.074.tmp-tmpfs-el7.sh'
- # - 'tpl.080.rsyslogd-el7.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.170.repos_oel7.sh'
- 'tpl.175.repos_el7.sh'
- 'tpl.200.init-repos.sh'
- # - 'tpl.205.bashrc-el7.sh'
- 'tpl.225.vimrc-el7.sh'
- 'tpl.250.pkgs-el7.sh'
- 'tpl.270.remove-uek.sh'
- 'tpl.280.dist-upgrade.sh'
- # - 'tpl.300.create-motd.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.400.chrony.sh'
- 'tpl.450.puppet.sh'
- # - 'tpl.470.postfix.sh'
- # - 'tpl.500.logrotate.sh'
- 'tpl.999.finish.sh'
- 'NetworkManager-config-server'
- 'bash-completion'
- 'bc'
- # - 'bind-utils'
- 'chrony'
- 'cloud-init'
- 'curl'
- 'dbus'
- # - 'grubby'
- # - 'iotop'
- 'kexec-tools'
- # - 'langpacks-de'
- 'lsof'
- 'man'
- # - 'mlocate'
- 'net-tools'
- 'oddjob-mkhomedir'
- 'psmisc'
- # - 'rsync'
- # - 's-nail'
- # - 'strace'
- # - 'sysstat'
- # - 'tcpdump'
- # - 'telnet'
- 'tmux'
- # - 'traceroute'
- 'vim'
- 'wget'
- # - 'yum-utils'
- '-abrt*'
- '-iwl*'
- '-nfs*'
- '-rpcbind'
snippets:
- 'tpl.001.basics.sh'
- # - 'tpl.005.update_resolvconf.sh'
- 'tpl.010.authkeys.sh'
- 'tpl.041.network-el9.sh'
# tweak_systemd will be removed, when the appropriate Puppet profile is working
- 'tpl.070.tweak_grub.sh'
# tmp-tmpfs will be removed, when the appropriate Puppet profile is working
- 'tpl.075.tmp-tmpfs.sh'
- # - 'tpl.080.rsyslogd-el9.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.110.register-rhel.sh'
- 'tpl.190.repos_rhel9.sh'
- 'tpl.195.repos_el9.sh'
- 'tpl.200.init-repos.sh'
- # - 'tpl.211.bashrc-el9.sh'
- # - 'tpl.221.locales-el9.sh'
- 'tpl.231.vimrc-centos9.sh'
- # - 'tpl.250.pkgs-el9.sh'
- 'tpl.280.dist-upgrade.sh'
- # - 'tpl.300.create-motd.sh'
- 'tpl.320.root-ssh-login.sh'
- 'tpl.400.chrony.sh'
- 'tpl.450.puppet.sh'
- # - 'tpl.500.logrotate.sh'
- 'tpl.999.finish.sh'
'/var/log/cloud-init-output.log',
'/var/log/cron',
'/var/log/dnf*.log',
+ '/var/log/grubby*',
'/var/log/hawkey.log',
'/var/log/messages',
'/var/log/secure',
echo
echo "-----------------------------------------------------------"
echo "Clearing journal log ..."
- journalctl --rotate --vacuum-time=2s
+ journalctl --flush
+ journalctl -m --vacuum-time=1s
echo
echo "-----------------------------------------------------------"
echo
echo "-----------------------------------------------------------"
echo "Clearing journal log ..."
- journalctl --rotate --vacuum-time=2s
+ journalctl --flush
+ systemctl stop systemd-journald.socket
+ systemctl stop systemd-journald.service
+ rm -rfv /var/log/journal/*
echo
echo "-----------------------------------------------------------"
echo "Truncating /var/log/*tmp and /var/log/messages ..."
+ systemctl stop rsyslog.service
cp -v /dev/null /var/log/btmp
cp -v /dev/null /var/log/wtmp
cp -v /dev/null /var/log/messages
+ cp -v /dev/null /var/log/dmesg
echo
echo "Sleeping some seconds ..."