From 0f81fba62ba791eba70c53d901ec380cbd14611c Mon Sep 17 00:00:00 2001 From: Francois Lesueur Date: Wed, 17 May 2023 11:29:27 +0200 Subject: [PATCH] bugfix et augmentation de la taille du disque --- Vagrantfile | 2 +- files/snster-kaz/kaz2/prod2/provision.sh | 1 - files/vm-provision.sh | 6 ++++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 4a0ca06..f0241eb 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -27,7 +27,7 @@ Vagrant.configure("2") do |config| config.vm.box = "debian/bullseye64" config.vm.hostname = 'kaz-vm' - config.disksize.size = '32GB' + config.disksize.size = '50GB' config.vm.provider "virtualbox" do |vb| vb.memory = "4096" diff --git a/files/snster-kaz/kaz2/prod2/provision.sh b/files/snster-kaz/kaz2/prod2/provision.sh index e87eb66..7e1c68c 100644 --- a/files/snster-kaz/kaz2/prod2/provision.sh +++ b/files/snster-kaz/kaz2/prod2/provision.sh @@ -102,7 +102,6 @@ DEBIAN_FRONTEND=noninteractive apt-get clean ifconfig lo:0 100.81.0.2 echo "100.81.0.2 smtp imap www mail cloud cloud.kaz.sns tableur tableur.kaz.sns webmail webmail.kaz.sns garradin garradin.kaz.sns wiki wiki.kaz.sns git git.kaz.sns office office.kaz.sns depot depot.kaz.sns ldap ldap.kaz.sns mdp mdp.kaz.sns koffre koffre.kaz.sns pad pad.kaz.sns agora agora.kaz.sns dashboard dashboard.kaz.sns" >> /etc/hosts cp "${DIR}/kaz.sh" /root/kaz.sh -cp "${DIR}/createUser.txt" /root/ cp -ar "${DIR}/kaz-config" /root/ chmod +x /root/kaz.sh bash "/root/kaz.sh" diff --git a/files/vm-provision.sh b/files/vm-provision.sh index dcd3946..30dfbe8 100755 --- a/files/vm-provision.sh +++ b/files/vm-provision.sh @@ -230,14 +230,16 @@ auth: # On met le KAZGUARD pour la mise au point echo "export KAZGUARD='true'" >> /root/.bashrc - # Build SNSTER KAZ ! - snster -c /root/snster-kaz create + # quelques détails cp "${VAGRANT_SRC_DIR}/vm-upgrade.sh" /root/ chmod +x /root/vm-upgrade.sh echo -e '#!/bin/sh\nsnster -c /root/snster-kaz start' >> /etc/rc.local chmod +x /etc/rc.local + # Build SNSTER KAZ ! + snster -c /root/snster-kaz create + echo "########## ********** End Vagrant $(date +%D-%T)" ) > >(tee ${DebugLog}stdout.log) 2> >(tee ${DebugLog}stderr.log >&2)