-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·107 lines (92 loc) · 3.27 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'chef/centos-6.5'
#config.vm.boot_timeout = '60'
## Setup Chef
config.omnibus.chef_version = :latest
config.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://api.opscode.com/organizations/sevenmen"
chef.validation_client_name = "sevenmen-validator"
chef.validation_key_path = ".chef/sevenmen-validator.pem"
chef.delete_node = true
chef.delete_client = true
chef.add_recipe 'smi-omnibus'
end
# Lets make a local mrepo!
config.vm.define 'smia-repo' do |repo|
repo.vm.hostname = 'smia-repo.sevenman.in'
repo.vm.network 'public_network', :mac => '0800277654C3'
repo.vm.network 'private_network', ip: '192.168.201.100'
repo.vm.provider 'virtualbox' do |v|
v.gui = true
v.memory = 2048
v.cpus = 6
v.name = 'smia-repo'
end
repo.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://api.opscode.com/organizations/sevenmen"
chef.validation_client_name = "sevenmen-validator"
chef.validation_key_path = ".chef/sevenmen-validator.pem"
chef.add_recipe 'smi-omnibus'
chef.add_recipe 'smi-mrepo'
end
end
# Katello Server
config.vm.define 'smia-kat' do |kat|
kat.vm.hostname = 'smia-katello.sevenman.in'
kat.vm.network 'public_network', :mac => '0800270406E7'
kat.vm.network 'private_network', ip: '192.168.201.101'
kat.vm.provider 'virtualbox' do |v|
v.gui = true
v.memory = 8000
v.cpus = 3
v.name = 'smia-katello'
end
kat.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://api.opscode.com/organizations/sevenmen"
chef.validation_client_name = "sevenmen-validator"
chef.validation_key_path = ".chef/sevenmen-validator.pem"
chef.add_recipe 'smi-omnibus'
chef.add_recipe 'smi-katello'
end
end
# Postgres for foreman
config.vm.define 'smia-pgdb' do |pgdb|
pgdb.vm.hostname = 'smia-pgdb.sevenman.in'
pgdb.vm.network 'public_network', :mac => '0800275D5150'
pgdb.vm.network 'private_network', ip: '192.168.201.102'
pgdb.vm.provider 'virtualbox' do |v|
v.gui = true
v.memory = 1024
v.cpus = 1
v.name = 'smia-pgdb'
end
pgdb.vm.provision :chef_client do |chef|
chef.chef_server_url = "https://api.opscode.com/organizations/sevenmen"
chef.validation_client_name = "sevenmen-validator"
chef.validation_key_path = ".chef/sevenmen-validator.pem"
chef.add_recipe 'smi-omnibus'
#chef.add_recipe 'smi-pgdb'
end
end
## This is a Developer Workstation
config.vm.define 'smid-00' do |smid|
smid.vm.hostname = 'smid-00'
smid.vm.network 'public_network'
smid.vm.network 'private_network', ip: '192.168.70.3'
# Do virtual Box settings
smid.vm.provider 'virtualbox' do |v|
v.gui = true
v.memory = 1536
end
# VMware Specifics
smid.vm.provider 'vmware_workstation' do |v|
v.gui = true
v.vmx['memsize'] = 2048
v.vmx['numvcpus'] = 1
end
end
end