Created
April 16, 2013 06:15
-
-
Save hokkai7go/5393753 to your computer and use it in GitHub Desktop.
Vagrantfile for jira
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
二重で設定しちゃってるわ => fowarded port