maj machines names

This commit is contained in:
Grégory Lebreton 2024-04-30 16:34:32 +02:00
parent 4d7750c95c
commit 9faa740e48
2 changed files with 25 additions and 11 deletions

View File

@ -2,14 +2,28 @@
Basique Vagrantfile pour instancier deux VM debian 12 Basique Vagrantfile pour instancier deux VM debian 12
## UTILISATION ## INSTALLATION VAGRANT
- Avec Virtualbox:
```bash
```
- Sans Virtualbox:
```bash
sudo apt-get install vagrant-libvirt libvirt-daemon-system -y
sudo usermod --append --groups libvirt $USER
newgrp libvirt
```
## UTILISATION :rockets:
- Construire les machines: - Construire les machines:
```bash ```bash
vagrant up vagrant up
``` ```
### AUTRES COMMANDES UTILES ### AUTRES COMMANDES UTILES
- Se connecter en SSH: - Se connecter en SSH:
```bash ```bash
@ -26,6 +40,6 @@ vagrant halt
vagrant destroy vagrant destroy
``` ```
## DOCUMENTATION ## DOCUMENTATION :books:
- [Vagrant](https://developer.hashicorp.com/vagrant/docs) [Vagrant](https://developer.hashicorp.com/vagrant/docs)

14
Vagrantfile vendored
View File

@ -10,22 +10,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.synced_folder ".", "/vagrant", disabled: true
# VM Provider # VM Provider
config.vm.provider :virtualbox do |v| config.vm.provider :virtualbox do |v|
v.memory = 256 v.memory = 1024
v.linked_clone = true v.linked_clone = true
end end
# STACK # STACK
# GUAC SERVER # GUAC SERVER
config.vm.define "guac-server" do |nginx| config.vm.define "guac-server" do |server|
nginx.vm.hostname = "server.dev" server.vm.hostname = "server.dev"
# static ip address # static ip address
nginx.vm.network :private_network, ip: "192.168.60.2" server.vm.network :private_network, ip: "192.168.60.2"
end end
# GUACD # GUACD
config.vm.define "guac-agent" do |wordpress| config.vm.define "guac-agent" do |agent|
wordpress.vm.hostname = "agent.dev" agent.vm.hostname = "agent.dev"
# static ip address # static ip address
wordpress.vm.network :private_network, ip: "192.168.60.3" agent.vm.network :private_network, ip: "192.168.60.3"
end end
end end