Migration de la VM vers SNSTER #1

Merged
fanch merged 5 commits from develop-snster into master 2023-03-01 15:28:08 +01:00
2 changed files with 6 additions and 9 deletions
Showing only changes of commit a878cbd4f2 - Show all commits

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ DEADJOE
/files/kaz/download
/files/kaz/git
/files/kaz/log
/files/customVM.sh

View File

@ -36,6 +36,11 @@ http_port 3142" >> /etc/squid/squid.conf
echo "Acquire::http::Proxy \"http://127.0.0.1:3142\";" > /etc/apt/apt.conf.d/01proxy; # utilisation de apt-cacher-ng
# Ajouter http://www.squid-cache.org/Doc/config/cache_peer/ à squid pour un proxy upstream
# Pour le confort de chacun, un customVM.sh optionnel
if [ -f "${VAGRANT_SRC_DIR}/customVM.sh" ]; then
bash "${VAGRANT_SRC_DIR}/customVM.sh"
fi
# MAJ et Install
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
@ -45,15 +50,6 @@ http_port 3142" >> /etc/squid/squid.conf
ssh-keygen -t rsa -b 4096 -N '' <<<$'\ny'
rsync /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
# Pour le confort de chacun
# Le fihcier .customVM.sh contient
# DEBIAN_FRONTEND=noninteractive apt-get install -y joe
# DEBIAN_FRONTEND=noninteractive apt-get install -y emacs
# DEBIAN_FRONTEND=noninteractive apt-get install -y vim
if [ -f "${VAGRANT_SRC_DIR}/.customVM.sh" ]; then
bash "${VAGRANT_SRC_DIR}/.customVM.sh"
fi
# Localisation du $LANG, en par défaut, timezone Paris
if [ -z "${HOSTLANG}" ] ; then
HOSTLANG="en_US.UTF-8"