質問編集履歴

1

Vagrantfileを追加しました!

2016/12/07 02:49

投稿

olafcrossfield
olafcrossfield

スコア13

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