install netaddr for cobbler snippet

Change-Id: Ie413e077837ea17653255ed408708a104fb88f51
This commit is contained in:
xiaodongwang 2014-11-09 20:00:30 -08:00
parent f932d2d129
commit 1db6e7b86b
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,12 @@ else
find /usr/lib -name manage_bind.py |xargs perl -pi.old -e 's/(\s+)(self\.logger\s+\= logger)/$1$2\n$1if self\.logger is None:\n$1 import clogger\n$1 self\.logger = clogger.Logger\(\)/'
fi
sudo pip install netaddr
if [[ "$?" != "0" ]]; then
echo "failed to install pip packages"
exit 1
fi
sudo chkconfig cobblerd on
# create backup dir

View File

@ -33,6 +33,10 @@ if [[ "$?" != "0" ]]; then
fi
sudo pip install virtualenvwrapper
if [[ "$?" != "0" ]]; then
echo "failed to install virtualenvwrapper"
exit 1
fi
sudo chkconfig httpd on
sudo chkconfig squid on