forked from 4linux/527
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (28 loc) · 1.25 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
require 'yaml'
secmachines = YAML.load_file("machines.yml")
Vagrant.configure("2") do |config|
secmachines.each do |machines|
config.vm.define machines["name"] do |server|
server.vm.hostname = machines["name"]
server.vm.box = machines["box"]
server.vm.box_check_update = false
server.vm.network "private_network", ip: machines["ip"], dns: "8.8.8.8"
server.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--groups", "/DevSecOps"]
vb.memory = machines["memory"]
vb.cpus = machines["cpus"]
vb.name = machines["name"]
end
server.vm.provision "file", source: "keys/devsecops.pem", destination: "/tmp/devsecops.pem"
server.vm.provision "file", source: "keys/devsecops.pub", destination: "/tmp/devsecops.pub"
server.vm.provision "file", source: "provisionamento/files/git-plugin-1.0.4.jar", destination: "/tmp/git-plugin-1.0.4.jar"
server.vm.provision "shell", path: machines["script"]
end
end
end