Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- Vagrant.configure(2) do |config|
- config.vm.define "ubuntu" do |ubuntu|
- # ----------------
- ### Box Defintion
- # ----------------
- ubuntu.vm.box = "juniper/netdevops-ubuntu1404-headless"
- # ----------------
- ### Network Options
- # ----------------
- ubuntu.vm.network :forwarded_port, guest: 22, host: 12201, id: 'ssh'
- ubuntu.vm.network "private_network", virtualbox__intnet: "management",
- ip: "10.0.1.1/24", auto_config: true
- # ubuntu.vm.network "private_network", virtualbox__intnet: "link_2",
- # ip: "10.0.2.1/24", auto_config: true
- ubuntu.vm.synced_folder "C:\\Users\\tgrimonet\\Documents\\Scripting", "/home/vagrant/scripts" , id: "vagrant-root",
- owner: "vagrant",
- group: "vagrant",
- mount_options: ["dmode=775,fmode=664"]
- # ----------------
- ### Manage Provider options
- # ----------------
- ubuntu.vm.provider :virtualbox do |vb|
- vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
- vb.gui = false
- end
- # ----------------
- ### Provisionning
- # ----------------
- ubuntu.vm.provision "file", source: "id-titom-git", destination: ".ssh/id-titom-git"
- ubuntu.vm.provision "shell", inline: <<-SHELL
- chmod 600 .ssh/id-titom-git
- sudo apt-get update
- sudo apt-get install -y build-essential libssl-dev libffi-dev gcc libxml2 python-dev libxml2-dev libxslt1-dev zlib1g-dev git vim nmap zsh python-novaclient python-lxml python-neutronclient python-pip libxml2-dev libxslt1-dev tree ansible
- sudo ansible-galaxy --force install Juniper.junos
- SHELL
- # ----------------
- ### Password authentication
- # ----------------
- # ubuntu.ssh.username = "vagrant"
- # ubuntu.ssh.password = "vagrant"
- end
- config.vm.define "vsrx01" do |vsrx01|
- vsrx01.vm.box = "juniper/ffp-12.1X47-D20.7-packetmode"
- vsrx01.vm.network :forwarded_port, guest: 22, host: 12203, id: 'ssh'
- vsrx01.vm.network "private_network", virtualbox__intnet: "management",
- ip: "10.0.1.10",
- netmask: "255.255.255.0"
- # vsrx01.vm.network "private_network", virtualbox__intnet: "vsrx01-vsrx02",
- # ip: "10.0.2.1",
- # netmask: "255.255.255.252"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement