質問編集履歴

2

vagrantfile全文を追記しました。

2017/03/09 04:36

投稿

koume
koume

スコア458

test CHANGED
File without changes
test CHANGED
@@ -60,4 +60,158 @@
60
60
 
61
61
 
62
62
 
63
- よろしくお願いします。
63
+ よろしくお願いします。vagrantfile全コードは下記になります。
64
+
65
+
66
+
67
+ コード
68
+
69
+ ```
70
+
71
+ # -*-mode: ruby -*-
72
+
73
+ # vi: set ft=ruby :
74
+
75
+
76
+
77
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
78
+
79
+ # configures the configuration version (we support older styles for
80
+
81
+ # backwards compatibility). Please don't change it unless you know what
82
+
83
+ # you're doing.
84
+
85
+ Vagrant.configure("2") do |config|
86
+
87
+ # The most common configuration options are documented and commented below.
88
+
89
+ # For a complete reference, please see the online documentation at
90
+
91
+ # https://docs.vagrantup.com.
92
+
93
+
94
+
95
+ # Every Vagrant development environment requires a box. You can search for
96
+
97
+ # boxes at https://atlas.hashicorp.com/search.
98
+
99
+ config.vm.box = "bento/centos-7.3"
100
+
101
+
102
+
103
+ # Disable automatic box update checking. If you disable this, then
104
+
105
+ # boxes will only be checked for updates when the user runs
106
+
107
+ # `vagrant box outdated`. This is not recommended.
108
+
109
+ # config.vm.box_check_update = false
110
+
111
+
112
+
113
+ # Create a forwarded port mapping which allows access to a specific port
114
+
115
+ # within the machine from a port on the host machine. In the example below,
116
+
117
+ # accessing "localhost:8080" will access port 80 on the guest machine.
118
+
119
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
120
+
121
+
122
+
123
+ # Create a private network, which allows host-only access to the machine
124
+
125
+ # using a specific IP.
126
+
127
+ config.vm.network "private_network", ip: "192.168.33.10"
128
+
129
+
130
+
131
+ # Create a public network, which generally matched to bridged network.
132
+
133
+ # Bridged networks make the machine appear as another physical device on
134
+
135
+ # your network.
136
+
137
+ # config.vm.network "public_network"
138
+
139
+
140
+
141
+ # Share an additional folder to the guest VM. The first argument is
142
+
143
+ # the path on the host to the actual folder. The second argument is
144
+
145
+ # the path on the guest to mount the folder. And the optional third
146
+
147
+ # argument is a set of non-required options.
148
+
149
+ # config.vm.synced_folder "../data", "/vagrant_data"
150
+
151
+
152
+
153
+ # Provider-specific configuration so you can fine-tune various
154
+
155
+ # backing providers for Vagrant. These expose provider-specific options.
156
+
157
+ # Example for VirtualBox:
158
+
159
+ #
160
+
161
+ # config.vm.provider "virtualbox" do |vb|
162
+
163
+ # # Display the VirtualBox GUI when booting the machine
164
+
165
+ # vb.gui = true
166
+
167
+ #
168
+
169
+ # # Customize the amount of memory on the VM:
170
+
171
+ # vb.memory = "1024"
172
+
173
+ # end
174
+
175
+ #
176
+
177
+ # View the documentation for the provider you are using for more
178
+
179
+ # information on available options.
180
+
181
+
182
+
183
+ # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
184
+
185
+ # such as FTP and Heroku are also available. See the documentation at
186
+
187
+ # https://docs.vagrantup.com/v2/push/atlas.html for more information.
188
+
189
+ # config.push.define "atlas" do |push|
190
+
191
+ # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
192
+
193
+ # end
194
+
195
+
196
+
197
+ # Enable provisioning with a shell script. Additional provisioners such as
198
+
199
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
200
+
201
+ # documentation for more information about their specific syntax and use.
202
+
203
+ # config.vm.provision "shell", inline: <<-SHELL
204
+
205
+ # apt-get update
206
+
207
+ # apt-get install -y apache2
208
+
209
+ # SHELL
210
+
211
+ end
212
+
213
+
214
+
215
+ コード
216
+
217
+ ```

1

特に気になる点を追加。

2017/03/09 04:35

投稿

koume
koume

スコア458

test CHANGED
File without changes
test CHANGED
@@ -48,4 +48,16 @@
48
48
 
49
49
  endが無いです。といわれているような感じもしますが違うような感じもするので教えていただけませんでしょうか?
50
50
 
51
+ よろしくお願いします。特に下記2行のエラーが気になりますので教えていただけませんでしょうか?
52
+
53
+ ```
54
+
55
+ There is a syntax error in the following Vagrantfile. The syntax error
56
+
57
+ message is reproduced below for convenience:
58
+
59
+ ```
60
+
61
+
62
+
51
63
  よろしくお願いします。