-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
49 lines (35 loc) · 1.49 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
Vagrant.configure("2") do |config|
config.berkshelf.enabled = true
config.vm.define :centos do |default_config|
default_config.vm.hostname = "centos"
default_config.vm.box = "CentOS 6.3 x86_64 minimal"
default_config.vm.box_url = "https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box"
default_config.vm.network :private_network, ip: "33.33.33.128"
default_config.rightscaleshim.run_list_dir = "runlists/centos"
default_config.rightscaleshim.shim_dir = "rightscaleshim/centos"
default_config.vm.provision :shell,
inline: <<SCRIPT
mkdir -p /var/chef/cache
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
rm -rf remi-release-6*.rpm epel-release-6*.rpm
# Pre-import the rightscale public key
rpm --import http://s3.amazonaws.com/rightscale_key_pub/rightscale_key.pub
#Create a yum source:
cat > /etc/yum.repos.d/RightLink-staging.repo <<EOF
[rightlink]
name=RightLink
baseurl=http://rightlink-integration.test.rightscale.com/adhoc/ivory/v6.0/yum/1/el/6/x86_64
gpgcheck=1
gpgkey=http://s3.amazonaws.com/rightscale_key_pub/rightscale_key.pub
EOF
yum install -y --nogpgcheck rightlink-cloud-none
SCRIPT
default_config.vm.provision :chef_solo do |chef|
chef.binary_env = "GEM_HOME=/opt/rightscale/sandbox/lib/ruby/gems/1.9.1"
chef.binary_path = "/opt/rightscale/sandbox/bin"
end
end
end