mirror of https://github.com/MISP/misp-packer
chg: [deploy] Various changes and clean-up
parent
9509c47b33
commit
d0b7ede35d
|
@ -165,10 +165,8 @@ removeAll () {
|
|||
[[ -d "output-virtualbox-iso" ]] && rm -r output-virtualbox-iso
|
||||
[[ -d "output-vmware-iso" ]] && rm -r output-vmware-iso
|
||||
[[ -d "VMware" ]] && rm -r VMware
|
||||
rm *.zip *.sfv
|
||||
rm -f *.zip *.zip.asc *.sfv *.sfv.asc *.ova *.ova.asc index.html
|
||||
rm ${PACKER_NAME}-deploy.json
|
||||
rm packer_virtualbox-iso_virtualbox-iso_sha*.sfv.asc
|
||||
rm ${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}-vmware.zip.asc
|
||||
rm /tmp/LICENSE-${PACKER_NAME}
|
||||
rm /tmp/vbox.done /tmp/vmware.done
|
||||
}
|
||||
|
@ -249,8 +247,9 @@ if [[ "${LATEST_COMMIT}" != "$(cat /tmp/${PACKER_NAME}-latest.sha)" ]]; then
|
|||
done
|
||||
|
||||
if [[ "${REMOTE}" == "1" ]]; then
|
||||
ssh ${REL_USER}@${REL_SERVER} "chmod -R +r export \
|
||||
mv export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/*.CHECKSUM* export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/checksums \
|
||||
ssh ${REL_USER}@${REL_SERVER} "chmod -R +r export ;\
|
||||
mv export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}-CHECKSUM.sfv export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/checksums ;\
|
||||
mv export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}-CHECKSUM.sfv.asc export/${PACKER_VM}_${VER}@${LATEST_COMMIT_SHORT}/checksums ;\
|
||||
cd export ; tree -T "${PACKER_VM} VM Images" -H https://www.circl.lu/misp-images/ -o index.html"
|
||||
fi
|
||||
|
||||
|
|
|
@ -194,12 +194,5 @@
|
|||
"pause_before": "10s",
|
||||
"pause_after": "30s"
|
||||
}
|
||||
],
|
||||
|
||||
"post-processors":[{
|
||||
"keep_input_artifact": "false",
|
||||
"keep_input_artifact": false,
|
||||
"type": "checksum",
|
||||
"checksum_types": ["sha1", "sha256", "sha384", "sha512"]
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
|
@ -21,11 +21,14 @@ cd /var/www/MISP/PyMISP
|
|||
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "Damage, terrible terrible damage!!!!" >> /tmp/tests-output.txt
|
||||
# TODO: Move the smtp server and e-mail address to a config file
|
||||
set smtp=smtp://149.13.33.5 ; cat /tmp/tests-output.txt |mail -s "tests/testlive_comprehensive.py failed on autogen-VM" steve.clement@circl.lu
|
||||
fi
|
||||
|
||||
rm -rf tests/viper-test-files
|
||||
|
||||
rm /etc/apt/apt.conf.d/99progressbar
|
||||
|
||||
# End Cleaning
|
||||
echo "VM cleaned and rebooting for automagic reas0ns."
|
||||
reboot
|
||||
|
|
|
@ -12,3 +12,4 @@ chmod 0440 /etc/sudoers.d/misp
|
|||
|
||||
# Disable fancy progressbar
|
||||
echo 'Dpkg::Progress-Fancy "0";' > /etc/apt/apt.conf.d/99progressbar
|
||||
echo 'Dpkg::Use-Pty "0";' >> /etc/apt/apt.conf.d/99progressbar
|
||||
|
|
Loading…
Reference in New Issue