1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windows + vagrant +centos + ansible

Last updated at Posted at 2016-11-16

install.png

:airplane:
1.test(任意)とsungbum(任意) フォルダをDドライバーに作成する。

1.png

testフォルダには下記のVagrant ファイルを配置します。

2.png

Vagrantfile

Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-6.8"
config.vm.hostname = "sungbum-dev"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "D:/sungbum", "/sungbum", mount_options: ["dmode=777", "fmode=777"]

config.vm.synced_folder "~/sungbum", "/sungbum", type:"nfs" #<--mac configuration

config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.cpus = 2
end

config.vm.provision "shell", inline: <<-SHELL
sudo yum install -y epel-release
sudo yum install -y ansible
SHELL
end


"D:/sungbum" and host "/sungbum"フォルダが同期されます。

:airplane:
2.コマンドプロンプトでカレントDドライバーに移動します。

C:>cd /d D:\test
3.png

:airplane:
3.さっそくインストールして見ましょう。
vagrantup.png

install2.png

install3.png

:airplane:
4.バチャルサーバに接続します。(ssh terminalは任意)
username => vagrant
passphrase => vagrant

4.png

5.png

:airplane:5.file comparison
7.png
8.png

お疲れ様でした。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?