forked from RiotGamesCookbooks/nexus-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (30 loc) · 1.01 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
Vagrant.configure("2") do |config|
config.vm.hostname = "nexus-berkshelf"
# Requires the vagrant-berkshelf plugin
config.berkshelf.enabled = true
config.vm.box = "opscode-centos-6.6"
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.6_chef-provisionerless.box"
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.network :forwarded_port, guest: 8081, host: 8081
config.vm.network :forwarded_port, guest: 8443, host: 8443
config.vm.provision :chef_solo do |chef|
chef_dir = File.join(Dir.home, ".chef")
chef.data_bags_path = File.join(chef_dir, "data_bags")
chef.encrypted_data_bag_secret_key_path = File.join(chef_dir, "encrypted_data_bag_secret")
chef.json = {
:nexus => {
:cli => {
:ssl => {
:verify => false
}
},
:app_server_proxy => {
:use_self_signed => true
}
}
}
chef.run_list = [
"recipe[nexus::default]"
]
end
end