Help us understand the problem. What is going on with this article?

魔法使いへの道:6歩目

More than 5 years have passed since last update.

Vagrantの使い方

最近昼の仕事が忙しすぎたりプライベートで落ち込んだりとモチベの維持に困っていましたので久々の投稿になります。

さて表題の問題ですよ!

知っている人も多いのかもしれませんが最近知ってしまったので書きます!

Vagrantは仮想の実行環境を何個も作れるのですがまさかVagrantfileの中に複数の環境を記述するだけで一回のinitコマンドでOSを走らせることができるとは!
ッて感じです。

Vagrantfile

そのとっても素敵な記述方法がこれ!

config.vm.define :host do |host|
host.vm.box = "centos"
host.vm.network :forwarded_port, guest: 22,host: 2001,id: "ssh"
host.vm.network :private_network, ip: "192.168.33.11"
end

↑をVagrantfileの中でコピーしてRubyの記法に則って書けば一気に複数のCentOSを実行することができる!

衝撃!

ちょっと感動した!

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした