-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
28 lines (22 loc) · 1.45 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/fedora-21"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "./webapps", "/var/lib/tomcat/webapps", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.synced_folder "./conf", "/etc/tomcat", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.synced_folder "./log", "/var/log/tomcat", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.synced_folder "./submodules/reference-ccda-validator", "/etc/submodules/reference-ccda-validator", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.synced_folder "./submodules/code-validator-api", "/etc/submodules/code-validator-api", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.synced_folder "./files", "/etc/ccda/files", create:true, owner: "root", group: "root", mount_options: ["dmode=777,fmode=666"]
config.vm.provision "shell", path: "files/scripts/do-magic.sh"
config.vm.provision "shell" do |s|
s.inline = "yum -y install puppet"
end
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "Puppet/manifests"
puppet.module_path = "Puppet/modules"
puppet.manifest_file = "site.pp"
end
end