boxes 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,59 @@
1
+ {
2
+ "provisioners": [
3
+ {
4
+ "type": "shell",
5
+ "scripts": [
6
+ "scripts/postinstall.sh",
7
+ "scripts/vmtools.sh",
8
+ <%- @scripts.each do |script| -%>
9
+ "scripts/<%= script %>",
10
+ <%- end -%>
11
+ "scripts/purge.sh"
12
+ ],
13
+ "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'"
14
+ }
15
+ ],
16
+ "builders": [
17
+ {
18
+ "name": "<%= @name %>",
19
+ "type": "<%= @provider %>-iso",
20
+ <%- if @provider == "vmware" -%>
21
+ "guest_os_type": "debian7-64",
22
+ "tools_upload_flavor": "linux",
23
+ <%- else -%>
24
+ "guest_os_type": "Debian_64",
25
+ <%- end -%>
26
+ "headless": true,
27
+
28
+ "iso_url": "http://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso",
29
+ "iso_checksum": "e39c36d6adc0fd86c6edb0e03e22919086c883b37ca194d063b8e3e8f6ff6a3a",
30
+ "iso_checksum_type": "sha256",
31
+
32
+ "ssh_username": "vagrant",
33
+ "ssh_password": "vagrant",
34
+
35
+ "http_directory": "templates/debian",
36
+
37
+ "boot_command": [
38
+ "<esc><wait>",
39
+ "install ",
40
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
41
+ "debian-installer=en_US auto=true locale=en_US kbd-chooser/method=us ",
42
+ "netcfg/get_hostname={{ .Name }} ",
43
+ "netcfg/get_domain=vagrantup.com ",
44
+ "fb=false debconf/frontend=noninteractive ",
45
+ "console-setup/ask_detect=false console-keymaps-at/keymap=us ",
46
+ "keyboard-configuration/xkb-keymap=us ",
47
+ "<enter>"
48
+ ],
49
+
50
+ "shutdown_command": "echo 'shutdown -h now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'"
51
+ }
52
+ ],
53
+
54
+ "post-processors": [
55
+ {
56
+ "type": "vagrant"
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "provisioners": [
3
+ {
4
+ "type": "shell",
5
+ "scripts": [
6
+ "scripts/postinstall.sh",
7
+ "scripts/vmtools.sh",
8
+ <%- @scripts.each do |script| -%>
9
+ "scripts/<%= script %>",
10
+ <%- end -%>
11
+ "scripts/purge.sh"
12
+ ],
13
+ "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'"
14
+ }
15
+ ],
16
+
17
+ "builders": [
18
+ {
19
+ "name": "<%= @name %>",
20
+ "type": "<%= @provider %>-iso",
21
+ <%- if @provider == "vmware" -%>
22
+ "guest_os_type": "ubuntu-64",
23
+ "tools_upload_flavor": "linux",
24
+ <%- else -%>
25
+ "guest_os_type": "Ubuntu_64",
26
+ <%- end -%>
27
+ "headless": true,
28
+
29
+ "iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.5-server-amd64.iso",
30
+ "iso_checksum": "769474248a3897f4865817446f9a4a53",
31
+ "iso_checksum_type": "md5",
32
+
33
+ "ssh_username": "vagrant",
34
+ "ssh_password": "vagrant",
35
+
36
+ "http_directory": "templates/ubuntu",
37
+
38
+ "boot_command": [
39
+ "<esc><esc><enter><wait>",
40
+ "/install/vmlinuz noapic ",
41
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
42
+ "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
43
+ "hostname={{ .Name }} ",
44
+ "fb=false debconf/frontend=noninteractive ",
45
+ "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
46
+ "keyboard-configuration/variant=USA console-setup/ask_detect=false ",
47
+ "initrd=/install/initrd.gz -- <enter>"
48
+ ],
49
+
50
+ "shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'"
51
+ }
52
+ ],
53
+
54
+ "post-processors": [
55
+ {
56
+ "type": "vagrant"
57
+ }
58
+ ]
59
+ }
@@ -0,0 +1,61 @@
1
+ #
2
+ # Based upon: https://help.ubuntu.com/12.04/installation-guide/example-preseed.txt
3
+ #
4
+
5
+ # localisation
6
+ d-i debian-installer/locale string en_US.utf8
7
+ d-i console-setup/ask_detect boolean false
8
+ d-i keyboard-configuration/layoutcode string us
9
+
10
+ # networking
11
+ d-i netcfg/choose_interface select auto
12
+ d-i netcfg/get_hostname string unassigned-hostname
13
+ d-i netcfg/get_domain string unassigned-domain
14
+ d-i netcfg/wireless_wep string
15
+
16
+ # apt mirrors
17
+ d-i mirror/country string manual
18
+ d-i mirror/http/hostname string archive.ubuntu.com
19
+ d-i mirror/http/directory string /ubuntu
20
+ d-i mirror/http/proxy string
21
+
22
+ # clock and time zone
23
+ d-i clock-setup/utc boolean true
24
+ d-i time/zone string GMT
25
+ d-i clock-setup/ntp boolean true
26
+
27
+ # partitioning
28
+ d-i partman-auto/method string lvm
29
+ d-i partman-lvm/device_remove_lvm boolean true
30
+ d-i partman-md/device_remove_md boolean true
31
+ d-i partman-lvm/confirm boolean true
32
+ # fix: http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
33
+ d-i partman-lvm/confirm_nooverwrite boolean true
34
+ d-i partman-auto-lvm/guided_size string max
35
+ d-i partman-auto/choose_recipe select atomic
36
+ d-i partman-partitioning/confirm_write_new_label boolean true
37
+ d-i partman/choose_partition select finish
38
+ d-i partman/confirm boolean true
39
+ d-i partman/confirm_nooverwrite boolean true
40
+
41
+ # users
42
+ d-i passwd/user-fullname string Vagrant User
43
+ d-i passwd/username string vagrant
44
+ d-i passwd/user-password password vagrant
45
+ d-i passwd/user-password-again password vagrant
46
+ d-i user-setup/allow-password-weak boolean true
47
+ d-i user-setup/encrypt-home boolean false
48
+
49
+ # packages
50
+ tasksel tasksel/first multiselect standard, ubuntu-server
51
+ d-i pkgsel/install-language-support boolean false
52
+ d-i pkgsel/include string openssh-server nfs-common curl git-core
53
+ d-i pkgsel/upgrade select full-upgrade
54
+ d-i pkgsel/update-policy select none
55
+ postfix postfix/main_mailer_type select No configuration
56
+
57
+ # boot loader
58
+ d-i grub-installer/only_debian boolean true
59
+
60
+ # hide the shutdown notice
61
+ d-i finish-install/reboot_in_progress note
@@ -0,0 +1,59 @@
1
+ {
2
+ "provisioners": [
3
+ {
4
+ "type": "shell",
5
+ "scripts": [
6
+ "scripts/postinstall.sh",
7
+ "scripts/vmtools.sh",
8
+ <%- @scripts.each do |script| -%>
9
+ "scripts/<%= script %>",
10
+ <%- end -%>
11
+ "scripts/purge.sh"
12
+ ],
13
+ "execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'"
14
+ }
15
+ ],
16
+
17
+ "builders": [
18
+ {
19
+ "name": "<%= @name %>",
20
+ "type": "<%= @provider %>-iso",
21
+ <%- if @provider == "vmware" -%>
22
+ "guest_os_type": "ubuntu-64",
23
+ "tools_upload_flavor": "linux",
24
+ <%- else -%>
25
+ "guest_os_type": "Ubuntu_64",
26
+ <%- end -%>
27
+ "headless": true,
28
+
29
+ "iso_url": "http://releases.ubuntu.com/trusty/ubuntu-14.04.3-server-amd64.iso",
30
+ "iso_checksum": "9e5fecc94b3925bededed0fdca1bd417",
31
+ "iso_checksum_type": "md5",
32
+
33
+ "ssh_username": "vagrant",
34
+ "ssh_password": "vagrant",
35
+
36
+ "http_directory": "templates/ubuntu",
37
+
38
+ "boot_command": [
39
+ "<esc><esc><enter><wait>",
40
+ "/install/vmlinuz noapic ",
41
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
42
+ "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
43
+ "hostname={{ .Name }} ",
44
+ "fb=false debconf/frontend=noninteractive ",
45
+ "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
46
+ "keyboard-configuration/variant=USA console-setup/ask_detect=false ",
47
+ "initrd=/install/initrd.gz -- <enter>"
48
+ ],
49
+
50
+ "shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'"
51
+ }
52
+ ],
53
+
54
+ "post-processors": [
55
+ {
56
+ "type": "vagrant"
57
+ }
58
+ ]
59
+ }
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: boxes
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nick Charlton
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-10-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: claide
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colored
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: cucumber
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: aruba
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.8'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.8'
111
+ - !ruby/object:Gem::Dependency
112
+ name: fakefs
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.6'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: |2
140
+ boxes takes the complexity out of building custom Vagrant boxes.
141
+
142
+ It's a command line tool which provides a set of templates and scripts to
143
+ combine as you need. There are also a set of pre-build boxes which are
144
+ regenerated regularly.'
145
+ email:
146
+ - nick@nickcharlton.net
147
+ executables:
148
+ - boxes
149
+ extensions: []
150
+ extra_rdoc_files: []
151
+ files:
152
+ - ".gitignore"
153
+ - ".ruby-version"
154
+ - CHANGELOG.md
155
+ - Gemfile
156
+ - LICENSE
157
+ - README.md
158
+ - Rakefile
159
+ - bin/boxes
160
+ - boxes.gemspec
161
+ - features/boxes.feature
162
+ - features/build.feature
163
+ - features/env.feature
164
+ - features/support/env.rb
165
+ - lib/boxes.rb
166
+ - lib/boxes/builder.rb
167
+ - lib/boxes/command.rb
168
+ - lib/boxes/command/build.rb
169
+ - lib/boxes/command/env.rb
170
+ - lib/boxes/config.rb
171
+ - lib/boxes/environment.rb
172
+ - lib/boxes/errors.rb
173
+ - lib/boxes/subprocess.rb
174
+ - lib/boxes/template.rb
175
+ - lib/boxes/version.rb
176
+ - scripts/ansible.sh
177
+ - scripts/chef.sh
178
+ - scripts/postinstall.sh
179
+ - scripts/puppet.sh
180
+ - scripts/purge.sh
181
+ - scripts/ruby.sh
182
+ - scripts/vmtools.sh
183
+ - spec/boxes/builder_spec.rb
184
+ - spec/boxes/config_spec.rb
185
+ - spec/boxes/environment_spec.rb
186
+ - spec/boxes/subprocess_spec.rb
187
+ - spec/boxes/template_spec.rb
188
+ - spec/spec_helper.rb
189
+ - spec/support/subprocess_command.rb
190
+ - templates/debian/preseed.cfg
191
+ - templates/debian/wheezy64.erb
192
+ - templates/ubuntu/precise64.erb
193
+ - templates/ubuntu/preseed.cfg
194
+ - templates/ubuntu/trusty64.erb
195
+ homepage: https://github.com/nickcharlton/boxes
196
+ licenses:
197
+ - MIT
198
+ metadata: {}
199
+ post_install_message:
200
+ rdoc_options: []
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ requirements: []
214
+ rubyforge_project:
215
+ rubygems_version: 2.4.5
216
+ signing_key:
217
+ specification_version: 4
218
+ summary: A command line tool to take the complexity out of building Vagrant boxes.
219
+ test_files:
220
+ - features/boxes.feature
221
+ - features/build.feature
222
+ - features/env.feature
223
+ - features/support/env.rb
224
+ - spec/boxes/builder_spec.rb
225
+ - spec/boxes/config_spec.rb
226
+ - spec/boxes/environment_spec.rb
227
+ - spec/boxes/subprocess_spec.rb
228
+ - spec/boxes/template_spec.rb
229
+ - spec/spec_helper.rb
230
+ - spec/support/subprocess_command.rb