From f0624065efa7af4c51437e1a3e2dc4da8d18339d Mon Sep 17 00:00:00 2001 From: nono <social@n07070.xyz> Date: Tue, 11 Jan 2022 17:06:58 +0100 Subject: [PATCH] Ajout d'un fichier Vagrant --- Vagrantfile | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 6a8dae9..56e9990 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -23,7 +23,7 @@ Vagrant.configure("2") do |config| # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port - config.vm.network "forwarded_port", guest: 8000, host: 8383 + config.vm.network "forwarded_port", guest: 80, host: 8383 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access @@ -32,7 +32,7 @@ Vagrant.configure("2") do |config| # Create a private network, which allows host-only access to the machine # using a specific IP. - config.vm.network "private_network", ip: "192.168.56.1" + config.vm.network "private_network", ip: "192.168.56.42" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on @@ -43,28 +43,9 @@ Vagrant.configure("2") do |config| # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. - # config.vm.synced_folder "../data", "/vagrant_data" + config.vm.synced_folder "./", "/home/don/don" - # Provider-specific configuration so you can fine-tune various - # backing providers for Vagrant. These expose provider-specific options. - # Example for VirtualBox: - # - # config.vm.provider "virtualbox" do |vb| - # # Display the VirtualBox GUI when booting the machine - # vb.gui = true - # - # # Customize the amount of memory on the VM: - # vb.memory = "1024" - # end - # - # View the documentation for the provider you are using for more - # information on available options. - - # Enable provisioning with a shell script. Additional provisioners such as - # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the - # documentation for more information about their specific syntax and use. - # config.vm.provision "shell", inline: <<-SHELL - # apt-get update - # apt-get install -y apache2 - # SHELL + config.vm.provision "ansible" do |ansible| + ansible.playbook = "ansible/playbook.yml" + end end -- GitLab