-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
25 lines (19 loc) · 841 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV["LC_ALL"] = "en_US.UTF-8"
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", "4096"]
v.customize ["modifyvm", :id, "--cpus", "4"]
end
config.vm.box = "centos/7"
config.vm.hostname = "foremanserver.lab.local.dev"
config.vm.network :private_network, ip: "10.0.20.10"
config.vm.provision "shell", inline: <<-SHELL
yum -y install https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
yum -y install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://yum.theforeman.org/releases/1.17/el7/x86_64/foreman-release.rpm
yum -y install foreman-installer
foreman-installer --foreman-admin-password azerty >> foreman-installer.log
SHELL
end