Capture network-scripts

The puppet-vswitch modules manages interface scripts when a bridge is
connected to a physical interface. This change ensures the network
scripts are captured in CI, so that we can review the files updated
by the module.

Change-Id: Id52cf40559d24ec1cce4e8cf35471fd4100d4e97
This commit is contained in:
Takashi Kajinami 2022-07-19 01:22:02 +09:00
parent d1f691e0a3
commit 6c664af12e

View File

@ -85,6 +85,12 @@ if which journalctl &> /dev/null; then
sudo journalctl --no-pager > $LOG_DIR/syslog.txt
fi
# network interfaces
if [ -d /etc/sysconfig/network-scripts ]; then
mkdir -p $LOG_DIR/etc/sysconfig
sudo cp -r /etc/sysconfig/network-scripts $LOG_DIR/etc/sysconfig/
fi
# rabbitmq
if [ -d /etc/rabbitmq ]; then
sudo cp -r /etc/rabbitmq $LOG_DIR/etc/