Migration de la VM vers SNSTER #1
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ DEADJOE
|
|||||||
/files/kaz/download
|
/files/kaz/download
|
||||||
/files/kaz/git
|
/files/kaz/git
|
||||||
/files/kaz/log
|
/files/kaz/log
|
||||||
|
/files/customVM.sh
|
||||||
|
@ -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
|
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
|
# 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
|
# MAJ et Install
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y dist-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'
|
ssh-keygen -t rsa -b 4096 -N '' <<<$'\ny'
|
||||||
rsync /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
|
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
|
# Localisation du $LANG, en par défaut, timezone Paris
|
||||||
if [ -z "${HOSTLANG}" ] ; then
|
if [ -z "${HOSTLANG}" ] ; then
|
||||||
HOSTLANG="en_US.UTF-8"
|
HOSTLANG="en_US.UTF-8"
|
||||||
|
Loading…
Reference in New Issue
Block a user