kameleon-builder 2.2.5 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.rst +21 -0
  4. data/{templates → contrib}/steps/bootstrap/debian/debootstrap_arm.yaml +1 -1
  5. data/{templates → contrib}/steps/export/clean_appliance.yaml +0 -0
  6. data/{templates → contrib}/steps/export/compact_qcow_img.yaml +0 -0
  7. data/{templates → contrib}/steps/setup/archlinux/configure_ruby.yaml +0 -0
  8. data/{templates → contrib}/steps/setup/archlinux/install_dev_tools.yaml +0 -0
  9. data/{templates → contrib}/steps/setup/archlinux/install_gnome.yaml +0 -0
  10. data/{templates → contrib}/steps/setup/archlinux/install_yaourt.yaml +0 -0
  11. data/{templates → contrib}/steps/setup/centos/6.5/configure_repo.yaml +0 -0
  12. data/{templates → contrib}/steps/setup/debian/install_gnome.yaml +0 -0
  13. data/{templates → contrib}/steps/setup/debian/install_kde.yaml +0 -0
  14. data/{templates → erb}/extend.erb +2 -2
  15. data/erb/userconf.erb +5 -0
  16. data/kameleon-builder.gemspec +6 -1
  17. data/lib/kameleon.rb +53 -3
  18. data/lib/kameleon/cli.rb +146 -99
  19. data/lib/kameleon/engine.rb +20 -8
  20. data/lib/kameleon/environment.rb +11 -10
  21. data/lib/kameleon/persistent_cache.rb +1 -9
  22. data/lib/kameleon/recipe.rb +52 -24
  23. data/lib/kameleon/repository.rb +46 -0
  24. data/lib/kameleon/utils.rb +49 -0
  25. data/{templates → tests/recipes}/steps/aliases/defaults.yaml +0 -0
  26. data/tests/recipes/steps/bootstrap/linux/bootstrap.yaml +2 -0
  27. data/tests/recipes/steps/checkpoints/test.yaml +14 -0
  28. data/tests/recipes/steps/enable_something.yaml +2 -0
  29. data/tests/recipes/steps/export/save_appliance.yaml +10 -0
  30. data/tests/recipes/steps/setup/linux/software_install.yaml +7 -0
  31. data/tests/recipes/test_recipe.yaml +41 -0
  32. data/version.txt +1 -1
  33. metadata +34 -139
  34. data/templates/COPYRIGHT +0 -21
  35. data/templates/chroot/debian7-amd64.yaml +0 -119
  36. data/templates/docker/debian7.yaml +0 -107
  37. data/templates/grid5000/debian7.yaml +0 -97
  38. data/templates/qemu/archlinux-desktop-i686.yaml +0 -25
  39. data/templates/qemu/archlinux-desktop-x86_64.yaml +0 -25
  40. data/templates/qemu/archlinux-i686.yaml +0 -25
  41. data/templates/qemu/archlinux-x86_64.yaml +0 -109
  42. data/templates/qemu/centos6.5-x86_64.yaml +0 -122
  43. data/templates/qemu/centos7-x86_64.yaml +0 -122
  44. data/templates/qemu/debian7-amd64.yaml +0 -134
  45. data/templates/qemu/debian7-desktop-amd64.yaml +0 -24
  46. data/templates/qemu/debian7-kameleon-amd64.yaml +0 -40
  47. data/templates/qemu/debian7-oar-amd64.yaml +0 -51
  48. data/templates/qemu/debian8-amd64.yaml +0 -25
  49. data/templates/qemu/fedora20-desktop-x86_64.yaml +0 -21
  50. data/templates/qemu/fedora20-x86_64.yaml +0 -119
  51. data/templates/qemu/ubuntu-12.04-amd64.yaml +0 -132
  52. data/templates/qemu/ubuntu-12.04-desktop-amd64.yaml +0 -25
  53. data/templates/qemu/ubuntu-14.04-amd64.yaml +0 -25
  54. data/templates/qemu/ubuntu-14.04-desktop-amd64.yaml +0 -27
  55. data/templates/steps/bootstrap/archlinux/arch_bootstrap.yaml +0 -211
  56. data/templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml +0 -67
  57. data/templates/steps/bootstrap/debian/debootstrap.yaml +0 -20
  58. data/templates/steps/bootstrap/fedora/init_pxeboot.yaml +0 -13
  59. data/templates/steps/bootstrap/fedora/yum_bootstrap.yaml +0 -45
  60. data/templates/steps/bootstrap/g5k_reserv.yaml +0 -70
  61. data/templates/steps/bootstrap/initialize_disk.yaml +0 -16
  62. data/templates/steps/bootstrap/initialize_disk_chroot.yaml +0 -80
  63. data/templates/steps/bootstrap/install_requirements.yaml +0 -3
  64. data/templates/steps/bootstrap/prepare_chroot.yaml +0 -126
  65. data/templates/steps/bootstrap/prepare_docker.yaml +0 -51
  66. data/templates/steps/bootstrap/prepare_qemu.yaml +0 -41
  67. data/templates/steps/bootstrap/prepare_virtualbox.yaml +0 -67
  68. data/templates/steps/bootstrap/start_chroot.yaml +0 -51
  69. data/templates/steps/bootstrap/start_docker.yaml +0 -16
  70. data/templates/steps/bootstrap/start_qemu.yaml +0 -74
  71. data/templates/steps/bootstrap/start_virtualbox.yaml +0 -38
  72. data/templates/steps/bootstrap/switch_context_qemu.yaml +0 -84
  73. data/templates/steps/bootstrap/switch_context_virtualbox.yaml +0 -86
  74. data/templates/steps/breakpoint.yaml +0 -3
  75. data/templates/steps/checkpoints/docker.yaml +0 -17
  76. data/templates/steps/checkpoints/qcow2.yaml +0 -40
  77. data/templates/steps/checkpoints/qemu.yaml +0 -33
  78. data/templates/steps/checkpoints/virtualbox.yaml +0 -21
  79. data/templates/steps/disable_checkpoint.yaml +0 -3
  80. data/templates/steps/enable_checkpoint.yaml +0 -5
  81. data/templates/steps/export/qemu_save_appliance.yaml +0 -52
  82. data/templates/steps/export/save_appliance_from_g5k.yaml +0 -47
  83. data/templates/steps/export/vagrant_save_appliance.yaml +0 -14
  84. data/templates/steps/export/virtualbox_save_appliance.yaml +0 -61
  85. data/templates/steps/setup/archlinux/configure_keyboard.yaml +0 -9
  86. data/templates/steps/setup/archlinux/configure_network.yaml +0 -9
  87. data/templates/steps/setup/archlinux/configure_system.yaml +0 -20
  88. data/templates/steps/setup/archlinux/install_bootloader.yaml +0 -23
  89. data/templates/steps/setup/archlinux/install_software.yaml +0 -9
  90. data/templates/steps/setup/autologin.yaml +0 -16
  91. data/templates/steps/setup/centos/6.5/configure_network.yaml +0 -33
  92. data/templates/steps/setup/centos/6.5/configure_system.yaml +0 -46
  93. data/templates/steps/setup/centos/6.5/minimal_install.yaml +0 -3
  94. data/templates/steps/setup/centos/6.5/setup_vagrant_box.yaml +0 -77
  95. data/templates/steps/setup/create_group.yaml +0 -12
  96. data/templates/steps/setup/create_user.yaml +0 -11
  97. data/templates/steps/setup/debian/configure_apt.yaml +0 -73
  98. data/templates/steps/setup/debian/configure_kernel.yaml +0 -13
  99. data/templates/steps/setup/debian/configure_keyboard.yaml +0 -10
  100. data/templates/steps/setup/debian/configure_network.yaml +0 -30
  101. data/templates/steps/setup/debian/configure_system.yaml +0 -12
  102. data/templates/steps/setup/debian/install_bootloader.yaml +0 -36
  103. data/templates/steps/setup/debian/install_software.yaml +0 -2
  104. data/templates/steps/setup/debian/oar/oar_debian_config_frontend.yaml +0 -8
  105. data/templates/steps/setup/debian/oar/oar_debian_config_node.yaml +0 -5
  106. data/templates/steps/setup/debian/oar/oar_debian_config_server.yaml +0 -5
  107. data/templates/steps/setup/debian/oar/oar_prereq_install.yaml +0 -16
  108. data/templates/steps/setup/debian/setup_vagrant_box.yaml +0 -80
  109. data/templates/steps/setup/debian/upgrade_system.yaml +0 -10
  110. data/templates/steps/setup/fedora/configure_kernel.yaml +0 -9
  111. data/templates/steps/setup/fedora/configure_keyboard.yaml +0 -12
  112. data/templates/steps/setup/fedora/configure_network.yaml +0 -38
  113. data/templates/steps/setup/fedora/configure_system.yaml +0 -52
  114. data/templates/steps/setup/fedora/install_bootloader.yaml +0 -53
  115. data/templates/steps/setup/fedora/install_software.yaml +0 -3
  116. data/templates/steps/setup/fedora/minimal_install.yaml +0 -3
  117. data/templates/steps/setup/fedora/update_system.yaml +0 -16
  118. data/templates/steps/setup/oar/oar_config_devel.yaml +0 -21
  119. data/templates/steps/setup/oar/oar_config_frontend.yaml +0 -38
  120. data/templates/steps/setup/oar/oar_config_node.yaml +0 -4
  121. data/templates/steps/setup/oar/oar_config_server.yaml +0 -25
  122. data/templates/steps/setup/oar/oar_config_system.yaml +0 -34
  123. data/templates/steps/setup/oar/oar_devel_prereq_install.yaml +0 -5
  124. data/templates/steps/setup/oar/oar_git_install.yaml +0 -21
  125. data/templates/steps/setup/ubuntu/configure_apt.yaml +0 -62
  126. data/templates/virtualbox/archlinux-desktop-i686.yaml +0 -25
  127. data/templates/virtualbox/archlinux-desktop-x86_64.yaml +0 -28
  128. data/templates/virtualbox/archlinux-i686.yaml +0 -28
  129. data/templates/virtualbox/archlinux-x86_64.yaml +0 -108
  130. data/templates/virtualbox/centos6.5-i386.yaml +0 -39
  131. data/templates/virtualbox/centos6.5-vagrant-x86_64.yaml +0 -33
  132. data/templates/virtualbox/centos6.5-x86_64.yaml +0 -121
  133. data/templates/virtualbox/centos7-x86_64.yaml +0 -118
  134. data/templates/virtualbox/debian7-amd64.yaml +0 -128
  135. data/templates/virtualbox/debian7-desktop-amd64.yaml +0 -25
  136. data/templates/virtualbox/debian7-i386.yaml +0 -31
  137. data/templates/virtualbox/debian7-kameleon-amd64.yaml +0 -38
  138. data/templates/virtualbox/debian7-oar-amd64.yaml +0 -51
  139. data/templates/virtualbox/debian7-vagrant-amd64.yaml +0 -32
  140. data/templates/virtualbox/debian8-amd64.yaml +0 -25
  141. data/templates/virtualbox/debian8-i386.yaml +0 -31
  142. data/templates/virtualbox/fedora20-x86_64.yaml +0 -118
  143. data/templates/virtualbox/ubuntu-12.04-amd64.yaml +0 -128
  144. data/templates/virtualbox/ubuntu-12.04-desktop-amd64.yaml +0 -25
  145. data/templates/virtualbox/ubuntu-14.04-amd64.yaml +0 -25
  146. data/templates/virtualbox/ubuntu-14.04-desktop-amd64.yaml +0 -27
  147. data/tests/recipes/dummy_recipe.yaml +0 -48
  148. data/tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml +0 -4
  149. data/tests/recipes/steps/export/dummy_save_appliance.yaml +0 -9
  150. data/tests/recipes/steps/setup/default/dummy_root_passwd.yaml +0 -8
  151. data/tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml +0 -7
@@ -0,0 +1,2 @@
1
+ - enable_something:
2
+ - exec_local: echo enable_something
@@ -0,0 +1,10 @@
1
+ # # Dummy Save Appliance
2
+ - save_as_raw:
3
+ - exec_local: echo save_as_raw
4
+ - exec_out: echo save_as_raw
5
+ - exec_in: echo save_as_raw
6
+
7
+ - save_as_tgz:
8
+ - exec_local: echo save_as_tgz
9
+ - exec_out: echo save_as_tgz
10
+ - exec_in: echo save_as_tgz
@@ -0,0 +1,7 @@
1
+ # # Dummy Software Install
2
+ - intall:
3
+ - exec_in: echo install
4
+ - configure:
5
+ - exec_out: echo configure
6
+ - clean:
7
+ - exec_in: echo clean
@@ -0,0 +1,41 @@
1
+ #===============================================================================
2
+ # vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
3
+ #===============================================================================
4
+ #
5
+ # DESCRIPTION: This is a test recipe made for unit testing
6
+ #
7
+ #===============================================================================
8
+ ---
9
+ # Loads some helpful aliases
10
+ aliases: defaults.yaml
11
+ checkpoint: test.yaml
12
+ #== Global variables use by Kameleon engine and the steps
13
+ global:
14
+ ## User varibales : used by the recipe
15
+ user_name: kameleon
16
+ user_password: $$user_name
17
+
18
+ # Distribution
19
+ distrib: linux
20
+
21
+ ## System variables. Required by kameleon engine
22
+ # Include specific steps
23
+ include_steps:
24
+ - $$distrib
25
+
26
+ bootstrap_packages: >
27
+ less vim python
28
+
29
+ #== Bootstrap the new system and create the 'in_context'
30
+ bootstrap:
31
+ - enable_something
32
+ - bootstrap:
33
+ - include_pkg: $$bootstrap_packages
34
+
35
+ setup:
36
+ - software_install
37
+
38
+ export:
39
+ - save_appliance:
40
+ - save_as_raw
41
+ # - save_as_vmdk
@@ -1 +1 @@
1
- 2.2.5
1
+ 2.3.0
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kameleon-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salem Harrache
8
8
  - Michael Mercier
9
9
  - Cristan Ruiz
10
+ - Pierre Neyron
10
11
  - Bruno Bzeznik
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2014-09-19 00:00:00.000000000 Z
15
+ date: 2014-10-16 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
18
  name: childprocess
@@ -72,6 +73,7 @@ email:
72
73
  - salem.harrache@inria.fr
73
74
  - michael.mercier@inria.fr
74
75
  - cristian.ruiz@imag.fr
76
+ - pierre.neyron@imag.fr
75
77
  - bruno.bzeznik@imag.fr
76
78
  executables:
77
79
  - kameleon
@@ -100,13 +102,23 @@ files:
100
102
  - contrib/scripts/umount-chroot.sh
101
103
  - contrib/steps/bootstrap/debian/bootstrap_if_needed.yaml
102
104
  - contrib/steps/bootstrap/debian/bootstrap_static.yaml
105
+ - contrib/steps/bootstrap/debian/debootstrap_arm.yaml
106
+ - contrib/steps/export/clean_appliance.yaml
107
+ - contrib/steps/export/compact_qcow_img.yaml
103
108
  - contrib/steps/export/save_as_g5k.yaml
104
109
  - contrib/steps/setup/add_timestamp.yaml
105
110
  - contrib/steps/setup/add_to_sudoers.yaml
111
+ - contrib/steps/setup/archlinux/configure_ruby.yaml
112
+ - contrib/steps/setup/archlinux/install_dev_tools.yaml
113
+ - contrib/steps/setup/archlinux/install_gnome.yaml
114
+ - contrib/steps/setup/archlinux/install_yaourt.yaml
106
115
  - contrib/steps/setup/autologin.yaml
116
+ - contrib/steps/setup/centos/6.5/configure_repo.yaml
107
117
  - contrib/steps/setup/copy_ssh_auth_file.yaml
108
118
  - contrib/steps/setup/debian/add_network_interface.yaml
109
119
  - contrib/steps/setup/debian/cluster_tools_install.yaml
120
+ - contrib/steps/setup/debian/install_gnome.yaml
121
+ - contrib/steps/setup/debian/install_kde.yaml
110
122
  - contrib/steps/setup/debian/network_config_static.yaml
111
123
  - contrib/steps/setup/generate_user_ssh_key.yaml
112
124
  - contrib/steps/setup/install_my_ssh_key.yaml
@@ -114,6 +126,8 @@ files:
114
126
  - contrib/steps/setup/root_ssh_config.yaml
115
127
  - contrib/steps/setup/set_user_password.yaml
116
128
  - contrib/steps/setup/system_optimization.yaml
129
+ - erb/extend.erb
130
+ - erb/userconf.erb
117
131
  - kameleon-builder.gemspec
118
132
  - lib/kameleon.rb
119
133
  - lib/kameleon/cli.rb
@@ -124,147 +138,25 @@ files:
124
138
  - lib/kameleon/error.rb
125
139
  - lib/kameleon/persistent_cache.rb
126
140
  - lib/kameleon/recipe.rb
141
+ - lib/kameleon/repository.rb
127
142
  - lib/kameleon/shell.rb
128
143
  - lib/kameleon/step.rb
129
144
  - lib/kameleon/ui.rb
130
145
  - lib/kameleon/utils.rb
131
146
  - lib/kameleon/version.rb
132
- - templates/COPYRIGHT
133
- - templates/chroot/debian7-amd64.yaml
134
- - templates/docker/debian7.yaml
135
- - templates/extend.erb
136
- - templates/grid5000/debian7.yaml
137
- - templates/qemu/archlinux-desktop-i686.yaml
138
- - templates/qemu/archlinux-desktop-x86_64.yaml
139
- - templates/qemu/archlinux-i686.yaml
140
- - templates/qemu/archlinux-x86_64.yaml
141
- - templates/qemu/centos6.5-x86_64.yaml
142
- - templates/qemu/centos7-x86_64.yaml
143
- - templates/qemu/debian7-amd64.yaml
144
- - templates/qemu/debian7-desktop-amd64.yaml
145
- - templates/qemu/debian7-kameleon-amd64.yaml
146
- - templates/qemu/debian7-oar-amd64.yaml
147
- - templates/qemu/debian8-amd64.yaml
148
- - templates/qemu/fedora20-desktop-x86_64.yaml
149
- - templates/qemu/fedora20-x86_64.yaml
150
- - templates/qemu/ubuntu-12.04-amd64.yaml
151
- - templates/qemu/ubuntu-12.04-desktop-amd64.yaml
152
- - templates/qemu/ubuntu-14.04-amd64.yaml
153
- - templates/qemu/ubuntu-14.04-desktop-amd64.yaml
154
- - templates/steps/aliases/defaults.yaml
155
- - templates/steps/bootstrap/archlinux/arch_bootstrap.yaml
156
- - templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml
157
- - templates/steps/bootstrap/debian/debootstrap.yaml
158
- - templates/steps/bootstrap/debian/debootstrap_arm.yaml
159
- - templates/steps/bootstrap/fedora/init_pxeboot.yaml
160
- - templates/steps/bootstrap/fedora/yum_bootstrap.yaml
161
- - templates/steps/bootstrap/g5k_reserv.yaml
162
- - templates/steps/bootstrap/initialize_disk.yaml
163
- - templates/steps/bootstrap/initialize_disk_chroot.yaml
164
- - templates/steps/bootstrap/install_requirements.yaml
165
- - templates/steps/bootstrap/prepare_chroot.yaml
166
- - templates/steps/bootstrap/prepare_docker.yaml
167
- - templates/steps/bootstrap/prepare_qemu.yaml
168
- - templates/steps/bootstrap/prepare_virtualbox.yaml
169
- - templates/steps/bootstrap/start_chroot.yaml
170
- - templates/steps/bootstrap/start_docker.yaml
171
- - templates/steps/bootstrap/start_qemu.yaml
172
- - templates/steps/bootstrap/start_virtualbox.yaml
173
- - templates/steps/bootstrap/switch_context_qemu.yaml
174
- - templates/steps/bootstrap/switch_context_virtualbox.yaml
175
- - templates/steps/breakpoint.yaml
176
- - templates/steps/checkpoints/docker.yaml
177
- - templates/steps/checkpoints/qcow2.yaml
178
- - templates/steps/checkpoints/qemu.yaml
179
- - templates/steps/checkpoints/virtualbox.yaml
180
- - templates/steps/disable_checkpoint.yaml
181
- - templates/steps/enable_checkpoint.yaml
182
- - templates/steps/export/clean_appliance.yaml
183
- - templates/steps/export/compact_qcow_img.yaml
184
- - templates/steps/export/qemu_save_appliance.yaml
185
- - templates/steps/export/save_appliance_from_g5k.yaml
186
- - templates/steps/export/vagrant_save_appliance.yaml
187
- - templates/steps/export/virtualbox_save_appliance.yaml
188
- - templates/steps/setup/archlinux/configure_keyboard.yaml
189
- - templates/steps/setup/archlinux/configure_network.yaml
190
- - templates/steps/setup/archlinux/configure_ruby.yaml
191
- - templates/steps/setup/archlinux/configure_system.yaml
192
- - templates/steps/setup/archlinux/install_bootloader.yaml
193
- - templates/steps/setup/archlinux/install_dev_tools.yaml
194
- - templates/steps/setup/archlinux/install_gnome.yaml
195
- - templates/steps/setup/archlinux/install_software.yaml
196
- - templates/steps/setup/archlinux/install_yaourt.yaml
197
- - templates/steps/setup/autologin.yaml
198
- - templates/steps/setup/centos/6.5/configure_network.yaml
199
- - templates/steps/setup/centos/6.5/configure_repo.yaml
200
- - templates/steps/setup/centos/6.5/configure_system.yaml
201
- - templates/steps/setup/centos/6.5/minimal_install.yaml
202
- - templates/steps/setup/centos/6.5/setup_vagrant_box.yaml
203
- - templates/steps/setup/create_group.yaml
204
- - templates/steps/setup/create_user.yaml
205
- - templates/steps/setup/debian/configure_apt.yaml
206
- - templates/steps/setup/debian/configure_kernel.yaml
207
- - templates/steps/setup/debian/configure_keyboard.yaml
208
- - templates/steps/setup/debian/configure_network.yaml
209
- - templates/steps/setup/debian/configure_system.yaml
210
- - templates/steps/setup/debian/install_bootloader.yaml
211
- - templates/steps/setup/debian/install_gnome.yaml
212
- - templates/steps/setup/debian/install_kde.yaml
213
- - templates/steps/setup/debian/install_software.yaml
214
- - templates/steps/setup/debian/oar/oar_debian_config_frontend.yaml
215
- - templates/steps/setup/debian/oar/oar_debian_config_node.yaml
216
- - templates/steps/setup/debian/oar/oar_debian_config_server.yaml
217
- - templates/steps/setup/debian/oar/oar_prereq_install.yaml
218
- - templates/steps/setup/debian/setup_vagrant_box.yaml
219
- - templates/steps/setup/debian/upgrade_system.yaml
220
- - templates/steps/setup/fedora/configure_kernel.yaml
221
- - templates/steps/setup/fedora/configure_keyboard.yaml
222
- - templates/steps/setup/fedora/configure_network.yaml
223
- - templates/steps/setup/fedora/configure_system.yaml
224
- - templates/steps/setup/fedora/install_bootloader.yaml
225
- - templates/steps/setup/fedora/install_software.yaml
226
- - templates/steps/setup/fedora/minimal_install.yaml
227
- - templates/steps/setup/fedora/update_system.yaml
228
- - templates/steps/setup/oar/oar_config_devel.yaml
229
- - templates/steps/setup/oar/oar_config_frontend.yaml
230
- - templates/steps/setup/oar/oar_config_node.yaml
231
- - templates/steps/setup/oar/oar_config_server.yaml
232
- - templates/steps/setup/oar/oar_config_system.yaml
233
- - templates/steps/setup/oar/oar_devel_prereq_install.yaml
234
- - templates/steps/setup/oar/oar_git_install.yaml
235
- - templates/steps/setup/ubuntu/configure_apt.yaml
236
- - templates/virtualbox/archlinux-desktop-i686.yaml
237
- - templates/virtualbox/archlinux-desktop-x86_64.yaml
238
- - templates/virtualbox/archlinux-i686.yaml
239
- - templates/virtualbox/archlinux-x86_64.yaml
240
- - templates/virtualbox/centos6.5-i386.yaml
241
- - templates/virtualbox/centos6.5-vagrant-x86_64.yaml
242
- - templates/virtualbox/centos6.5-x86_64.yaml
243
- - templates/virtualbox/centos7-x86_64.yaml
244
- - templates/virtualbox/debian7-amd64.yaml
245
- - templates/virtualbox/debian7-desktop-amd64.yaml
246
- - templates/virtualbox/debian7-i386.yaml
247
- - templates/virtualbox/debian7-kameleon-amd64.yaml
248
- - templates/virtualbox/debian7-oar-amd64.yaml
249
- - templates/virtualbox/debian7-vagrant-amd64.yaml
250
- - templates/virtualbox/debian8-amd64.yaml
251
- - templates/virtualbox/debian8-i386.yaml
252
- - templates/virtualbox/fedora20-x86_64.yaml
253
- - templates/virtualbox/ubuntu-12.04-amd64.yaml
254
- - templates/virtualbox/ubuntu-12.04-desktop-amd64.yaml
255
- - templates/virtualbox/ubuntu-14.04-amd64.yaml
256
- - templates/virtualbox/ubuntu-14.04-desktop-amd64.yaml
257
147
  - tests/helper.rb
258
- - tests/recipes/dummy_recipe.yaml
259
- - tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml
260
- - tests/recipes/steps/export/dummy_save_appliance.yaml
261
- - tests/recipes/steps/setup/default/dummy_root_passwd.yaml
262
- - tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml
148
+ - tests/recipes/steps/aliases/defaults.yaml
149
+ - tests/recipes/steps/bootstrap/linux/bootstrap.yaml
150
+ - tests/recipes/steps/checkpoints/test.yaml
151
+ - tests/recipes/steps/enable_something.yaml
152
+ - tests/recipes/steps/export/save_appliance.yaml
153
+ - tests/recipes/steps/setup/linux/software_install.yaml
154
+ - tests/recipes/test_recipe.yaml
263
155
  - tests/test_context.rb
264
156
  - tests/test_recipe.rb
265
157
  - tests/test_version.rb
266
158
  - version.txt
267
- homepage: http://kameleon.readthedocs.org/
159
+ homepage: http://kameleon.imag.fr/
268
160
  licenses:
269
161
  - GPL-2
270
162
  metadata: {}
@@ -282,7 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
174
  - - ">="
283
175
  - !ruby/object:Gem::Version
284
176
  version: '0'
285
- requirements: []
177
+ requirements:
178
+ - polipo 1.0.3, or greater
286
179
  rubyforge_project:
287
180
  rubygems_version: 2.2.2
288
181
  signing_key:
@@ -290,11 +183,13 @@ specification_version: 4
290
183
  summary: Kameleon is a tool to build virtual machines from scratch
291
184
  test_files:
292
185
  - tests/helper.rb
293
- - tests/recipes/dummy_recipe.yaml
294
- - tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml
295
- - tests/recipes/steps/export/dummy_save_appliance.yaml
296
- - tests/recipes/steps/setup/default/dummy_root_passwd.yaml
297
- - tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml
186
+ - tests/recipes/steps/aliases/defaults.yaml
187
+ - tests/recipes/steps/bootstrap/linux/bootstrap.yaml
188
+ - tests/recipes/steps/checkpoints/test.yaml
189
+ - tests/recipes/steps/enable_something.yaml
190
+ - tests/recipes/steps/export/save_appliance.yaml
191
+ - tests/recipes/steps/setup/linux/software_install.yaml
192
+ - tests/recipes/test_recipe.yaml
298
193
  - tests/test_context.rb
299
194
  - tests/test_recipe.rb
300
195
  - tests/test_version.rb
@@ -1,21 +0,0 @@
1
- # Kameleon recipes and steps
2
- # ==========================
3
- #
4
- # All the files and subdirectories in this directory are part of the
5
- # kameleon tool distributed under this copyright.
6
- # Copyright (C) 2009-2010 LIG <http://lig.imag.fr/>
7
- #
8
- # This program is free software; you can redistribute it and/or modify
9
- # it under the terms of the GNU General Public License as published by
10
- # the Free Software Foundation; either version 2 of the License, or
11
- # (at your option) any later version.
12
- #
13
- # This program is distributed in the hope that it will be useful,
14
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- # GNU General Public License for more details.
17
- #
18
- # You should have received a copy of the GNU General Public License
19
- # along with this program; if not, write to the Free Software
20
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
-
@@ -1,119 +0,0 @@
1
- #==============================================================================
2
- # vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
3
- #==============================================================================
4
- #
5
- # DESCRIPTION: Build a debian wheezy appliance using chroot and qemu-nbd.
6
- #
7
- #==============================================================================
8
-
9
- ---
10
- # Loads some helpful aliases
11
- aliases: defaults.yaml
12
- # Enables qcow2 checkpoint
13
- checkpoint: qcow2.yaml
14
- #== Global variables use by Kameleon engine and the steps
15
- global:
16
- ## User varibales : used by the recipe
17
- user_name: kameleon
18
- user_password: $$user_name
19
-
20
- # Distribution
21
- distrib: debian
22
- release: wheezy
23
- arch: amd64
24
- kernel_arch: $$arch
25
- hostname: kameleon-$$distrib
26
-
27
- ## Disk options
28
- nbd_device: /dev/nbd1
29
- image_disk: $$kameleon_cwd/base_$$kameleon_recipe_name.qcow2
30
- image_size: 10G
31
- filesystem_type: ext4
32
-
33
- # rootfs options
34
- rootfs: $$kameleon_cwd/rootfs
35
-
36
- ## System variables. Required by kameleon engine
37
- # Include specific steps
38
- include_steps:
39
- - $$distrib/$$release
40
- - $$distrib
41
-
42
- # Apt options
43
- apt_repository: http://ftp.debian.org/debian/
44
- apt_enable_contrib: true
45
- apt_enable_nonfree: true
46
-
47
- # Shell session from where we launch exec_out commands. There is often a
48
- # local bash session, but it can be a remote shell on other machines or on
49
- # any shell. (eg. bash, chroot, fakechroot, ssh, tmux, lxc...)
50
- out_context:
51
- cmd: bash
52
- workdir: $$kameleon_cwd
53
- proxy_cache: 127.0.0.1
54
- # Shell session that allows us to connect to the building machine in order to
55
- # configure it and setup additional programs
56
- in_context:
57
- cmd: USER=root HOME=/root LC_ALL=POSIX chroot $$kameleon_cwd/rootfs bash
58
- workdir: /root/kameleon_workdir
59
- proxy_cache: 127.0.0.1
60
-
61
- #== Bootstrap the new system and create the 'in_context'
62
- bootstrap:
63
- - initialize_disk_chroot
64
- - enable_checkpoint
65
- - debootstrap:
66
- - include_pkg: apt-utils ca-certificates locales less
67
- - release: $$release
68
- - arch: $$arch
69
- - repository: http://ftp.debian.org/debian/
70
- - variant: minbase
71
- - start_chroot
72
-
73
- #== Install and configuration steps
74
- # WARNING: this part should be independante from the out context (whenever
75
- # possible...)
76
- setup:
77
- # Install
78
- - configure_apt:
79
- - repository: $$apt_repository
80
- - enable_contrib_repo: $$apt_enable_contrib
81
- - enable_nonfree_repo: $$apt_enable_nonfree
82
- - upgrade_system:
83
- - dist_upgrade: true
84
- - install_software:
85
- - packages: >
86
- debian-keyring sudo less vim bash-completion curl less acpid
87
- linux-image-$$kernel_arch isc-dhcp-client isc-dhcp-common ifupdown
88
- iptables iputils-ping iproute pciutils psmisc resolvconf extlinux
89
- - configure_kernel
90
- - install_bootloader
91
- # Configuration
92
- - configure_system:
93
- - locales: POSIX C en_US fr_FR de_DE
94
- - lang: en_US.UTF-8
95
- - timezone: UTC
96
- - configure_keyboard:
97
- - layout: "us,fr,de"
98
- - configure_network
99
- - create_group:
100
- - name: admin
101
- - create_user:
102
- - name: $$user_name
103
- - groups: sudo admin
104
- - password: $$user_password
105
-
106
- #== Export the generated appliance in the format of your choice
107
- export:
108
- - disable_checkpoint
109
- - qemu_save_appliance:
110
- - input: $$image_disk
111
- - output: $$kameleon_cwd/$$kameleon_recipe_name
112
- - save_as_qcow2
113
- # - save_as_qed
114
- # - save_as_tar_gz
115
- # - save_as_tar_xz
116
- # - save_as_tar_bz2
117
- # - save_as_raw
118
- # - save_as_vmdk
119
- # - save_as_vdi