#!/usr/bin/env bash DESC="Configuration de comanche." run() { . $VDN_PATH/bin/functions-scripts.sh setErrorHandler echoStart name="comanche" requireSshGuests $name setHostname $name cat << EOF | setHosts $name 127.0.0.1 localhost $($VDN_PATH/bin/vdn-infos darkside PUBLIC_IP) darkside $($VDN_PATH/bin/vdn-infos brightside PUBLIC_IP) brightside 192.168.2.1 passerelle 192.168.2.2 distributeur 192.168.2.3 client 192.168.2.4 comanche 192.168.3.2 appolo 192.168.3.3 castafiore EOF cat << EOF | setInterfaces $name # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp EOF echo "Post config. Patientez quelques secondes" cat << EOF | setFile $name /var/www/html/index.html VDN Default Page for $name : It works ! EOF vdn-ssh root@$name "systemctl enable apache2; systemctl restart apache2" unsetErrorHandler echoDone }