Skip to content

Commit

Permalink
Add back vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Dec 20, 2023
1 parent a190b89 commit 9c1ddf6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions {{cookiecutter.github_repository}}/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# -*- 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 = "bento/ubuntu-16.04"

# Make virtualbox use 1GB RAM. Compilation of libraries like lxml may fail for
# less than 1GB RAM.
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network :forwarded_port, guest: 80, host: 8080

# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network :private_network, ip: "192.168.33.12"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network :public_network

# If true, then any SSH connections made will enable agent forwarding.
# Default value: false
# config.ssh.forward_agent = true

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "./", "/home/vagrant/{{ cookiecutter.github_repository }}/"

config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioner/site.yml"
ansible.host_key_checking = "False"
ansible.inventory_path = "provisioner/hosts"
ansible.verbose = "v"
ansible.limit = "vagrant"
end
end

0 comments on commit 9c1ddf6

Please sign in to comment.