forked from endocode/puppet-ejabberd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
44 lines (38 loc) · 1.32 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
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# => vagrant plugin install vagrant-proxyconf
if Vagrant.has_plugin?("vagrant-proxyconf")
has_proxy = false
if ENV.has_key?('http_proxy') and !ENV['http_proxy'].empty?
config.proxy.http = ENV['http_proxy']
has_proxy = true
end
if ENV.has_key?('https_proxy') and !ENV['https_proxy'].empty?
config.proxy.https = ENV['https_proxy']
has_proxy = true
end
if has_proxy
config.proxy.no_proxy = "localhost,127.0.0.1"
end
end
config.vm.synced_folder ".", "/etc/puppet/modules/ejabberd/"
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "ubuntu/trusty64"
ubuntu.vm.provision "shell", inline: 'apt-get update && apt-get install -y puppet'
ubuntu.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "init.pp"
puppet.options = ['--verbose', "-e 'class { 'ejabberd': }'"]
end
end
config.vm.define "debian" do |debian|
debian.vm.box = "puppetlabs/debian-7.8-64-puppet"
debian.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "init.pp"
puppet.options = ['--verbose', "-e 'class { 'ejabberd': }'"]
end
end
end