26 lines
684 B
Ruby
26 lines
684 B
Ruby
Vagrant.configure("2") do |config|
|
|
config.vm.box = "icehrm/icehrm"
|
|
config.vm.box_version = "1.0.0"
|
|
config.vm.network "private_network", ip: "192.168.10.12"
|
|
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "1024"
|
|
vb.cpus = "2"
|
|
vb.name = "icehrm-os.test"
|
|
end
|
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
|
|
systemctl restart sshd.service
|
|
sudo service nginx restart
|
|
SHELL
|
|
|
|
config.vm.hostname = "icehrm.os"
|
|
|
|
config.hostsupdater.aliases = [
|
|
"icehrm.os"
|
|
]
|
|
end
|
|
|