質問編集履歴
2
vagrantfile全文を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -29,4 +29,81 @@
|
|
29
29
|
message is reproduced below for convenience:
|
30
30
|
```
|
31
31
|
|
32
|
-
よろしくお願いします。
|
32
|
+
よろしくお願いします。vagrantfile全コードは下記になります。
|
33
|
+
|
34
|
+
コード
|
35
|
+
```
|
36
|
+
# -*-mode: ruby -*-
|
37
|
+
# vi: set ft=ruby :
|
38
|
+
|
39
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
40
|
+
# configures the configuration version (we support older styles for
|
41
|
+
# backwards compatibility). Please don't change it unless you know what
|
42
|
+
# you're doing.
|
43
|
+
Vagrant.configure("2") do |config|
|
44
|
+
# The most common configuration options are documented and commented below.
|
45
|
+
# For a complete reference, please see the online documentation at
|
46
|
+
# https://docs.vagrantup.com.
|
47
|
+
|
48
|
+
# Every Vagrant development environment requires a box. You can search for
|
49
|
+
# boxes at https://atlas.hashicorp.com/search.
|
50
|
+
config.vm.box = "bento/centos-7.3"
|
51
|
+
|
52
|
+
# Disable automatic box update checking. If you disable this, then
|
53
|
+
# boxes will only be checked for updates when the user runs
|
54
|
+
# `vagrant box outdated`. This is not recommended.
|
55
|
+
# config.vm.box_check_update = false
|
56
|
+
|
57
|
+
# Create a forwarded port mapping which allows access to a specific port
|
58
|
+
# within the machine from a port on the host machine. In the example below,
|
59
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
60
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
61
|
+
|
62
|
+
# Create a private network, which allows host-only access to the machine
|
63
|
+
# using a specific IP.
|
64
|
+
config.vm.network "private_network", ip: "192.168.33.10"
|
65
|
+
|
66
|
+
# Create a public network, which generally matched to bridged network.
|
67
|
+
# Bridged networks make the machine appear as another physical device on
|
68
|
+
# your network.
|
69
|
+
# config.vm.network "public_network"
|
70
|
+
|
71
|
+
# Share an additional folder to the guest VM. The first argument is
|
72
|
+
# the path on the host to the actual folder. The second argument is
|
73
|
+
# the path on the guest to mount the folder. And the optional third
|
74
|
+
# argument is a set of non-required options.
|
75
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
76
|
+
|
77
|
+
# Provider-specific configuration so you can fine-tune various
|
78
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
79
|
+
# Example for VirtualBox:
|
80
|
+
#
|
81
|
+
# config.vm.provider "virtualbox" do |vb|
|
82
|
+
# # Display the VirtualBox GUI when booting the machine
|
83
|
+
# vb.gui = true
|
84
|
+
#
|
85
|
+
# # Customize the amount of memory on the VM:
|
86
|
+
# vb.memory = "1024"
|
87
|
+
# end
|
88
|
+
#
|
89
|
+
# View the documentation for the provider you are using for more
|
90
|
+
# information on available options.
|
91
|
+
|
92
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
93
|
+
# such as FTP and Heroku are also available. See the documentation at
|
94
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
95
|
+
# config.push.define "atlas" do |push|
|
96
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
97
|
+
# end
|
98
|
+
|
99
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
100
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
101
|
+
# documentation for more information about their specific syntax and use.
|
102
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
103
|
+
# apt-get update
|
104
|
+
# apt-get install -y apache2
|
105
|
+
# SHELL
|
106
|
+
end
|
107
|
+
|
108
|
+
コード
|
109
|
+
```
|
1
特に気になる点を追加。
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,4 +23,10 @@
|
|
23
23
|
(他は#でコメントになっています。)
|
24
24
|
|
25
25
|
endが無いです。といわれているような感じもしますが違うような感じもするので教えていただけませんでしょうか?
|
26
|
+
よろしくお願いします。特に下記2行のエラーが気になりますので教えていただけませんでしょうか?
|
27
|
+
```
|
28
|
+
There is a syntax error in the following Vagrantfile. The syntax error
|
29
|
+
message is reproduced below for convenience:
|
30
|
+
```
|
31
|
+
|
26
32
|
よろしくお願いします。
|