Skip to content

Instantly share code, notes, and snippets.

@toshimasa-nanaki
Created December 9, 2017 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshimasa-nanaki/24132029a82f94fdc349a9ae6ff0ff4f to your computer and use it in GitHub Desktop.
Save toshimasa-nanaki/24132029a82f94fdc349a9ae6ff0ff4f to your computer and use it in GitHub Desktop.
Vagrantfileとinit.sh(Redmine動作確認用)
#!/bin/sh
#パッケージを更新
sudo yum -y update
# coding: utf-8
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.name = "centos7-redmine"
v.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.box = "centos/7"
config.vm.hostname = "centos7-redmine"
config.vm.network :private_network, ip: "192.168.33.105"
config.ssh.forward_agent = true
config.vm.synced_folder "share/", "/vagrant", type: "rsync"
config.vm.provision "shell", inline: <<-SHELL
/vagrant/init.sh
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment