Skip to content

Instantly share code, notes, and snippets.

@kujiy
Last active January 22, 2022 02:02
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 kujiy/fdd73d6f200cfff8e067682f6b6a7848 to your computer and use it in GitHub Desktop.
Save kujiy/fdd73d6f200cfff8e067682f6b6a7848 to your computer and use it in GitHub Desktop.
Vagrantfile
Vagrant.configure("2") do |config|
# config.vm.box = "centos/7"
# 共有フォルダが使えるイメージ
config.vm.box = "geerlingguy/centos7"
config.vm.synced_folder "/Users/<name>/repos", "/repos"
config.vm.provision "shell", inline: <<-SHELL
sudo yum install -y vim net-tools iputils
SHELL
config.vm.define :node1 do |node|
node.vm.network "public_network"
node.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
node.vm.disk :disk, size: "1GB", name: "extra_storage"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment