install des extensions vbox dans le vm-provision
This commit is contained in:
parent
ef45fe09f4
commit
ea12e28122
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -12,7 +12,7 @@ end
|
|||||||
# you're doing.
|
# you're doing.
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
required_plugins = %w( vagrant-vbguest vagrant-disksize )
|
required_plugins = %w( vagrant-disksize )
|
||||||
_retry = false
|
_retry = false
|
||||||
required_plugins.each do |plugin|
|
required_plugins.each do |plugin|
|
||||||
unless Vagrant.has_plugin? plugin
|
unless Vagrant.has_plugin? plugin
|
||||||
|
@ -59,6 +59,9 @@ sympaHost=listes
|
|||||||
vigiloHost=vigilo
|
vigiloHost=vigilo
|
||||||
webmailHost=webmail
|
webmailHost=webmail
|
||||||
wordpressHost=wp
|
wordpressHost=wp
|
||||||
|
ldapUIHost=mdp
|
||||||
|
mobilizonHost=mobilizon
|
||||||
|
vaultwardenHost=koffre
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# noms des containers
|
# noms des containers
|
||||||
@ -84,6 +87,8 @@ sympaServName=sympaServ
|
|||||||
vigiloServName=vigiloServ
|
vigiloServName=vigiloServ
|
||||||
webServName=webServ
|
webServName=webServ
|
||||||
wordpressServName=wpServ
|
wordpressServName=wpServ
|
||||||
|
mobilizonServName=mobilizonServ
|
||||||
|
vaultwardenServName=vaultwardenServ
|
||||||
|
|
||||||
cachetDBName=cachetDB
|
cachetDBName=cachetDB
|
||||||
ethercalcDBName=ethercalcDB
|
ethercalcDBName=ethercalcDB
|
||||||
@ -97,6 +102,8 @@ roundcubeDBName=roundcubeDB
|
|||||||
sympaDBName=sympaDB
|
sympaDBName=sympaDB
|
||||||
vigiloDBName=vigiloDB
|
vigiloDBName=vigiloDB
|
||||||
wordpressDBName=wpDB
|
wordpressDBName=wpDB
|
||||||
|
mobilizonDBName=mobilizonDB
|
||||||
|
vaultwardenDBName=vaultwardenDB
|
||||||
|
|
||||||
ldapUIName=ldapUI
|
ldapUIName=ldapUI
|
||||||
|
|
||||||
|
@ -45,9 +45,18 @@ http_port 3142" >> /etc/squid/squid.conf
|
|||||||
# 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
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y apg curl git sudo unzip rsync firefox-esr tcpdump net-tools mousepad wireshark swapspace whois python3-lxc lxc python3-pygraphviz python3-pil python3-yaml imagemagick btrfs-progs docker-registry # could be with --no-install-recommends
|
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-headers-`dpkg --print-architecture` virtualbox-guest-additions-iso dkms apg curl git sudo unzip rsync firefox-esr tcpdump net-tools mousepad wireshark swapspace whois python3-lxc lxc python3-pygraphviz python3-pil python3-yaml imagemagick btrfs-progs docker-registry # could be with --no-install-recommends
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y xfce4 lightdm xfce4-terminal xserver-xorg gitk # needs to install recommends
|
DEBIAN_FRONTEND=noninteractive apt-get install -y xfce4 lightdm xfce4-terminal xserver-xorg gitk # needs to install recommends
|
||||||
|
|
||||||
|
# vbox guest utils
|
||||||
|
#VERSION=`curl https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT`
|
||||||
|
#curl https://download.virtualbox.org/virtualbox/$VERSION/VBoxGuestAdditions_$VERSION.iso -o /tmp/vbox.iso
|
||||||
|
#mount -o loop /tmp/vbox.iso /mnt
|
||||||
|
mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
|
||||||
|
/mnt/VBoxLinuxAdditions.run || true # vboxsf module will fail to load before reboot, expected behavior
|
||||||
|
/sbin/rcvboxadd quicksetup all || true
|
||||||
|
umount /mnt
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user