Skip to content

Instantly share code, notes, and snippets.

@hokkai7go
Created April 16, 2013 06:15
Show Gist options
  • Save hokkai7go/5393753 to your computer and use it in GitHub Desktop.
Save hokkai7go/5393753 to your computer and use it in GitHub Desktop.
Vagrantfile for jira
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# 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: 8080, 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.10"
config.vm.provider :virtualbox do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provision :puppet, :module_path => "modules" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "default.pp"
end
# Forward port to JIRA
# Vagrant 1.0 config format of forward_port
# config.vm.forward_port 8080, 8080
config.vm.network :forwarded_port, guest: 8080, host: 8080
end
@hokkai7go
Copy link
Author

二重で設定しちゃってるわ => fowarded port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment