forked from rundeck/anvils-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (23 loc) · 965 Bytes
/
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
Vagrant.configure("2") do |config|
PROJECT="anvils"
RDIP="192.168.50.2"
RUNDECK_YUM_REPO="https://bintray.com/rundeck/rundeck-rpm/rpm"
#RUNDECK_YUM_REPO="https://bintray.com/rundeck/ci-staging-rpm/rpm"
config.ssh.insert_key = false
config.vm.box = "bento/centos-6.7"
# uncomment for faster performance
#config.vm.provider "virtualbox" do |vb|
# vb.cpus = "2"
# vb.memory = "4096"
#end
config.vm.define :rundeck do |rundeck|
rundeck.vm.hostname = "rundeck.anvils.com"
rundeck.vm.network :private_network, ip: "#{RDIP}"
### uncomment for work around for issue#20 ######
#rundeck.vm.provision :shell, inline: "yum install epel-release -y"
####################
rundeck.vm.provision :shell, :path => "install-rundeck.sh", :args => "#{RDIP} #{RUNDECK_YUM_REPO}"
rundeck.vm.provision :shell, :path => "install-httpd.sh"
rundeck.vm.provision :shell, :path => "add-project.sh", :args => "#{PROJECT}"
end
end