-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
38 lines (32 loc) · 1.28 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
32
33
34
35
36
37
38
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# One box for each service. Corresponds to the child theme names.
# Append the name at the end of vagrant commands, e.g.
# vagrant up internal_news
# vagrant ssh internal_news
config.vm.define 'internal-news', autostart: false
config.vm.define 'internal-blog', autostart: false
config.vm.define 'external-blog', autostart: false
# config.vm.box = 'ubuntu/trusty64'
config.vm.box = 'bento/ubuntu-16.04'
config.vm.hostname = 'www.local.malmo.se'
config.vm.provider :virtualbox do |v|
v.memory = 1024
v.cpus = 1
end
config.vm.provider :vmware_fusion
config.vm.provider :vmware_workstation
config.vm.network 'forwarded_port', guest: 8000, host: 8001
config.vm.network 'forwarded_port', guest: 4430, host: 4430
# Setup Puppet environment and install malmo-mcommons using bash script
config.vm.provision :shell, path: 'https://raw.githubusercontent.com/malmostad/puppet-mcommons/master/bootstrap.sh'
# Run vagrant.pp Puppet install and configuration
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet'
puppet.manifest_file = 'vagrant.pp'
puppet.module_path = 'puppet'
puppet.facter = {
'fqdn' => 'www.local.malmo.se'
}
end
end