summaryrefslogtreecommitdiff
path: root/Vagrantfile
blob: 649d3024a7b7c4bd263687420bee802ca69f4751 (plain)
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
# -*- mode: ruby -*-
# vi: set ft=ruby :

def server_config(config)
  config.vm.provision :puppet, :module_path => '..' do |puppet|
    puppet.manifests_path = "vagrant"
    puppet.manifest_file  = "server.pp"
  end
end

def client_config(config)
  config.vm.provision :puppet, :module_path => '..' do |puppet|
    puppet.manifests_path = "vagrant"
    puppet.manifest_file  = "client.pp"
  end
end

Vagrant::Config.run do |config|

  config.vm.define :ubuntu_server do |c|
    c.vm.box = 'precise64'
    server_config c
  end

  config.vm.define :centos_server do |c|
    c.vm.box = 'centos63'
    server_config c
  end

  config.vm.define :ubuntu_client do |c|
    c.vm.box = 'precise64'
    client_config c
  end

end