@@ -341,6 +341,7 @@ remove_obsolete() {
341
341
rm -Rf ${dir} /srv/sfmanager
342
342
rm -Rf ${dir} /usr/local/murmur
343
343
rm -Rf ${dir} /var/www/managesf
344
+ rm -Rf ${dir} /var/www/cauth
344
345
345
346
# Gemfile is a sign /var/www/static was setup manually. It's now replaced by sf-web-assets package
346
347
if [ -f ${dir} /var/www/static/font-awesome/Gemfile ]; then
@@ -354,10 +355,6 @@ fix_ansible_issue5504() {
354
355
355
356
function install_sf {
356
357
set -e
357
- test -n " ${CAUTH_CLONED_PATH} "
358
- test -n " ${MANAGESF_CLONED_PATH} "
359
- test -n " ${PYSFLIB_CLONED_PATH} "
360
- test -n " ${SFMANAGER_CLONED_PATH} "
361
358
362
359
mkdir -p ${dir} /usr/src
363
360
@@ -370,14 +367,6 @@ function install_sf {
370
367
retry do_chroot ${dir} pip install ' pip<8' ${STAGING_PIP}
371
368
fi
372
369
373
- # Make sure subproject are available
374
- if [ ! -d " ${CAUTH_CLONED_PATH} " ] || [ ! -d " ${MANAGESF_CLONED_PATH} " ] || \
375
- [ ! -d " ${PYSFLIB_CLONED_PATH} " ] || [ ! -d " ${SFMANAGER_CLONED_PATH} " ]; then
376
- echo " Can't find subprojects in $( dirname ${CAUTH_CLONED_PATH} ) "
377
- echo " Run ./image/fetch_subprojects.sh first"
378
- exit -1
379
- fi
380
-
381
370
# Make sure final image use latest ids.tables
382
371
cp ./C7.0-ids.tables ${dir} /etc/ids.tables
383
372
@@ -406,14 +395,6 @@ function install_sf {
406
395
# be used as slave base image
407
396
cp -Rv ./../tools/slaves/* ${dir} /usr/local/bin/
408
397
409
- # Install cauth
410
- rsync -a --delete ${CAUTH_CLONED_PATH} / ${dir} /usr/src/cauth/
411
- do_chroot ${dir} bash -c " cd /usr/src/cauth; /var/www/cauth/bin/python setup.py install"
412
-
413
- # Install pysflib
414
- rsync -a --delete ${PYSFLIB_CLONED_PATH} / ${dir} /usr/src/pysflib/
415
- do_chroot ${dir} bash -c " cd /usr/src/pysflib; /var/www/cauth/bin/python setup.py install"
416
-
417
398
do_chroot ${dir} find /root /var/www /srv/ -name " *.pyc" -exec rm {} \;
418
399
419
400
# Documentation
@@ -468,10 +449,6 @@ build_all() {
468
449
checkpoint " edeploy, serverspect installed"
469
450
remove_obsolete
470
451
copy_sf_ansible_roles
471
- # Copy prepared source to support depends-on
472
- rsync -a --delete --exclude ' build' ${MANAGESF_CLONED_PATH} / ${dir} /usr/src/managesf/
473
- rsync -a --delete --exclude ' build' ${CAUTH_CLONED_PATH} / ${dir} /usr/src/cauth/
474
- rsync -a --delete --exclude ' build' ${PYSFLIB_CLONED_PATH} / ${dir} /usr/src/pysflib/
475
452
ansible_install sf-base
476
453
ansible_install sf-gateway
477
454
ansible_install sf-jenkins " $JENKINS_EXTRA_VARS "
0 commit comments