beaker-hostgenerator 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +4 -0
  3. data/HISTORY.md +233 -2
  4. data/README.md +50 -11
  5. data/beaker-hostgenerator.gemspec +2 -2
  6. data/lib/beaker-hostgenerator.rb +0 -1
  7. data/lib/beaker-hostgenerator/cli.rb +38 -26
  8. data/lib/beaker-hostgenerator/data.rb +960 -35
  9. data/lib/beaker-hostgenerator/generator.rb +57 -97
  10. data/lib/beaker-hostgenerator/hypervisor.rb +97 -0
  11. data/lib/beaker-hostgenerator/hypervisor/none.rb +17 -0
  12. data/lib/beaker-hostgenerator/hypervisor/vmpooler.rb +32 -0
  13. data/lib/beaker-hostgenerator/parser.rb +199 -0
  14. data/lib/beaker-hostgenerator/roles.rb +21 -14
  15. data/lib/beaker-hostgenerator/util.rb +10 -29
  16. data/lib/beaker-hostgenerator/version.rb +1 -1
  17. data/spec/beaker-hostgenerator/generator_spec.rb +73 -109
  18. data/spec/beaker-hostgenerator/parser_spec.rb +84 -0
  19. data/test/fixtures/default/cisconx-64a +1 -1
  20. data/test/fixtures/default/windows10ent-32d +22 -0
  21. data/test/fixtures/default/windows10ent-64f +22 -0
  22. data/test/fixtures/default/windows10pro-64m +22 -0
  23. data/test/fixtures/default/windows2003-6432d +22 -0
  24. data/test/fixtures/default/windows2003-64c +22 -0
  25. data/test/fixtures/default/windows2003r2-32f +22 -0
  26. data/test/fixtures/default/windows2003r2-6432aulcdfm +27 -0
  27. data/test/fixtures/default/windows2003r2-64m +22 -0
  28. data/test/fixtures/default/windows2008-6432u +22 -0
  29. data/test/fixtures/default/windows2008-64a +21 -0
  30. data/test/fixtures/default/windows2008r2-6432c +22 -0
  31. data/test/fixtures/default/windows2008r2-64l +22 -0
  32. data/test/fixtures/default/windows2012-6432f +22 -0
  33. data/test/fixtures/default/windows2012-64d +22 -0
  34. data/test/fixtures/default/windows2012r2-6432aulcdfm +27 -0
  35. data/test/fixtures/default/windows2012r2-64m +22 -0
  36. data/test/fixtures/default/windows7-64a +21 -0
  37. data/test/fixtures/default/windows8-64u +22 -0
  38. data/test/fixtures/default/windows81-64l +22 -0
  39. data/test/fixtures/default/windowsvista-64c +22 -0
  40. data/test/fixtures/multiplatform/arista4-32a-windows10pro-64-arista4-32aulcdfm +47 -0
  41. data/test/fixtures/multiplatform/centos4-32u-windows10ent-64-centos4-32m +43 -0
  42. data/test/fixtures/multiplatform/centos4-64l-windows10ent-32-centos4-64f +43 -0
  43. data/test/fixtures/multiplatform/centos5-32c-windowsvista-64-centos5-32d +43 -0
  44. data/test/fixtures/multiplatform/centos5-64d-windows81-64-centos5-64c +43 -0
  45. data/test/fixtures/multiplatform/centos6-32f-windows8-64-centos6-32l +43 -0
  46. data/test/fixtures/multiplatform/centos6-64m-windows7-64-centos6-64u +43 -0
  47. data/test/fixtures/multiplatform/centos7-64aulcdfm-windows2012r2-6432-centos7-64a +47 -0
  48. data/test/fixtures/multiplatform/cisconx-64a-windows2012r2-64-cisconx-64aulcdfm +53 -0
  49. data/test/fixtures/multiplatform/ciscoxr-64u-windows2012-6432-ciscoxr-64m +43 -0
  50. data/test/fixtures/multiplatform/cumulus25-64l-windows2012-64-cumulus25-64f +43 -0
  51. data/test/fixtures/multiplatform/debian6-32c-windows2008r2-6432-debian6-32d +43 -0
  52. data/test/fixtures/multiplatform/debian6-64d-windows2008r2-64-debian6-64c +43 -0
  53. data/test/fixtures/multiplatform/debian7-32f-windows2008-6432-debian7-32l +43 -0
  54. data/test/fixtures/multiplatform/debian7-64m-windows2008-64-debian7-64u +43 -0
  55. data/test/fixtures/multiplatform/debian8-32aulcdfm-windows2003r2-6432-debian8-32a +47 -0
  56. data/test/fixtures/multiplatform/debian8-64a-windows2003r2-64-debian8-64aulcdfm +47 -0
  57. data/test/fixtures/multiplatform/debian9-32u-windows2003r2-32-debian9-32m +43 -0
  58. data/test/fixtures/multiplatform/debian9-64l-windows2003-6432-debian9-64f +43 -0
  59. data/test/fixtures/multiplatform/fedora14-32l-solaris11-64-fedora14-32f +42 -0
  60. data/test/fixtures/multiplatform/fedora19-32c-solaris11-32-fedora19-32d +42 -0
  61. data/test/fixtures/multiplatform/fedora19-64d-solaris10-64-fedora19-64c +42 -0
  62. data/test/fixtures/multiplatform/fedora20-32f-solaris10-32-fedora20-32l +42 -0
  63. data/test/fixtures/multiplatform/fedora20-64m-sles12-64-fedora20-64u +42 -0
  64. data/test/fixtures/multiplatform/fedora21-32aulcdfm-sles11-64-fedora21-32a +46 -0
  65. data/test/fixtures/multiplatform/fedora21-64a-sles11-32-fedora21-64aulcdfm +46 -0
  66. data/test/fixtures/multiplatform/fedora22-32u-sles10-64-fedora22-32m +42 -0
  67. data/test/fixtures/multiplatform/fedora22-64l-sles10-32-fedora22-64f +42 -0
  68. data/test/fixtures/multiplatform/fedora23-32c-scientific7-64-fedora23-32d +42 -0
  69. data/test/fixtures/multiplatform/fedora23-64d-scientific6-64-fedora23-64c +42 -0
  70. data/test/fixtures/multiplatform/opensuse11-32f-scientific6-32-opensuse11-32l +42 -0
  71. data/test/fixtures/multiplatform/opensuse11-64m-scientific5-64-opensuse11-64u +42 -0
  72. data/test/fixtures/multiplatform/oracle5-32c-windows2003-64-oracle5-32d +43 -0
  73. data/test/fixtures/multiplatform/oracle5-64d-ubuntu1604-64-oracle5-64c +42 -0
  74. data/test/fixtures/multiplatform/oracle6-32f-ubuntu1604-32-oracle6-32l +42 -0
  75. data/test/fixtures/multiplatform/oracle6-64m-ubuntu1510-64-oracle6-64u +42 -0
  76. data/test/fixtures/multiplatform/oracle7-64aulcdfm-ubuntu1510-32-oracle7-64a +46 -0
  77. data/test/fixtures/multiplatform/osx1010-64u-ubuntu1504-32-osx1010-64m +42 -0
  78. data/test/fixtures/multiplatform/osx1011-64l-ubuntu1404-64-osx1011-64f +42 -0
  79. data/test/fixtures/multiplatform/osx109-64a-ubuntu1504-64-osx109-64aulcdfm +46 -0
  80. data/test/fixtures/multiplatform/redhat4-32c-ubuntu1404-32-redhat4-32d +42 -0
  81. data/test/fixtures/multiplatform/redhat4-64d-ubuntu1204-64-redhat4-64c +42 -0
  82. data/test/fixtures/multiplatform/redhat5-32f-ubuntu1204-32-redhat5-32l +42 -0
  83. data/test/fixtures/multiplatform/redhat5-64m-ubuntu1004-64-redhat5-64u +42 -0
  84. data/test/fixtures/multiplatform/redhat6-32aulcdfm-ubuntu1004-32-redhat6-32a +46 -0
  85. data/test/fixtures/multiplatform/redhat6-64a-solaris112-64-redhat6-64aulcdfm +46 -0
  86. data/test/fixtures/multiplatform/redhat7-64u-solaris112-32-redhat7-64m +42 -0
  87. data/test/fixtures/multiplatform/scientific5-32aulcdfm-scientific5-32-scientific5-32a +46 -0
  88. data/test/fixtures/multiplatform/scientific5-64a-opensuse11-64-scientific5-64aulcdfm +46 -0
  89. data/test/fixtures/multiplatform/scientific6-32u-opensuse11-32-scientific6-32m +42 -0
  90. data/test/fixtures/multiplatform/scientific6-64l-fedora23-64-scientific6-64f +42 -0
  91. data/test/fixtures/multiplatform/scientific7-64c-fedora23-32-scientific7-64d +42 -0
  92. data/test/fixtures/multiplatform/sles10-32d-fedora22-64-sles10-32c +42 -0
  93. data/test/fixtures/multiplatform/sles10-64f-fedora22-32-sles10-64l +42 -0
  94. data/test/fixtures/multiplatform/sles11-32m-fedora21-64-sles11-32u +42 -0
  95. data/test/fixtures/multiplatform/sles11-64aulcdfm-fedora21-32-sles11-64a +46 -0
  96. data/test/fixtures/multiplatform/sles12-64a-fedora20-64-sles12-64aulcdfm +46 -0
  97. data/test/fixtures/multiplatform/solaris10-32u-fedora20-32-solaris10-32m +42 -0
  98. data/test/fixtures/multiplatform/solaris10-64l-fedora19-64-solaris10-64f +42 -0
  99. data/test/fixtures/multiplatform/solaris11-32c-fedora19-32-solaris11-32d +42 -0
  100. data/test/fixtures/multiplatform/solaris11-64d-fedora14-32-solaris11-64c +42 -0
  101. data/test/fixtures/multiplatform/solaris112-32f-redhat7-64-solaris112-32l +42 -0
  102. data/test/fixtures/multiplatform/solaris112-64m-redhat6-64-solaris112-64u +42 -0
  103. data/test/fixtures/multiplatform/ubuntu1004-32aulcdfm-redhat6-32-ubuntu1004-32a +46 -0
  104. data/test/fixtures/multiplatform/ubuntu1004-64a-redhat5-64-ubuntu1004-64aulcdfm +46 -0
  105. data/test/fixtures/multiplatform/ubuntu1204-32u-redhat5-32-ubuntu1204-32m +42 -0
  106. data/test/fixtures/multiplatform/ubuntu1204-64l-redhat4-64-ubuntu1204-64f +42 -0
  107. data/test/fixtures/multiplatform/ubuntu1404-32c-redhat4-32-ubuntu1404-32d +42 -0
  108. data/test/fixtures/multiplatform/ubuntu1404-64d-osx1011-64-ubuntu1404-64c +42 -0
  109. data/test/fixtures/multiplatform/ubuntu1504-32f-osx1010-64-ubuntu1504-32l +42 -0
  110. data/test/fixtures/multiplatform/ubuntu1504-64m-osx109-64-ubuntu1504-64u +42 -0
  111. data/test/fixtures/multiplatform/ubuntu1510-32aulcdfm-oracle7-64-ubuntu1510-32a +46 -0
  112. data/test/fixtures/multiplatform/ubuntu1510-64a-oracle6-64-ubuntu1510-64aulcdfm +46 -0
  113. data/test/fixtures/multiplatform/ubuntu1604-32u-oracle6-32-ubuntu1604-32m +42 -0
  114. data/test/fixtures/multiplatform/ubuntu1604-64l-oracle5-64-ubuntu1604-64f +42 -0
  115. data/test/fixtures/multiplatform/windows10ent-32d-centos4-64-windows10ent-32c +44 -0
  116. data/test/fixtures/multiplatform/windows10ent-64f-centos4-32-windows10ent-64l +44 -0
  117. data/test/fixtures/multiplatform/windows10pro-64m-arista4-32-windows10pro-64u +44 -0
  118. data/test/fixtures/multiplatform/windows2003-6432d-debian9-64-windows2003-6432c +44 -0
  119. data/test/fixtures/multiplatform/windows2003-64c-oracle5-32-windows2003-64d +44 -0
  120. data/test/fixtures/multiplatform/windows2003r2-32f-debian9-32-windows2003r2-32l +44 -0
  121. data/test/fixtures/multiplatform/windows2003r2-6432aulcdfm-debian8-32-windows2003r2-6432a +48 -0
  122. data/test/fixtures/multiplatform/windows2003r2-64m-debian8-64-windows2003r2-64u +44 -0
  123. data/test/fixtures/multiplatform/windows2008-6432u-debian7-32-windows2008-6432m +44 -0
  124. data/test/fixtures/multiplatform/windows2008-64a-debian7-64-windows2008-64aulcdfm +48 -0
  125. data/test/fixtures/multiplatform/windows2008r2-6432c-debian6-32-windows2008r2-6432d +44 -0
  126. data/test/fixtures/multiplatform/windows2008r2-64l-debian6-64-windows2008r2-64f +44 -0
  127. data/test/fixtures/multiplatform/windows2012-6432f-ciscoxr-64-windows2012-6432l +44 -0
  128. data/test/fixtures/multiplatform/windows2012-64d-cumulus25-64-windows2012-64c +44 -0
  129. data/test/fixtures/multiplatform/windows2012r2-6432aulcdfm-centos7-64-windows2012r2-6432a +48 -0
  130. data/test/fixtures/multiplatform/windows2012r2-64m-cisconx-64-windows2012r2-64u +47 -0
  131. data/test/fixtures/multiplatform/windows7-64a-centos6-64-windows7-64aulcdfm +48 -0
  132. data/test/fixtures/multiplatform/windows8-64u-centos6-32-windows8-64m +44 -0
  133. data/test/fixtures/multiplatform/windows81-64l-centos5-64-windows81-64f +44 -0
  134. data/test/fixtures/multiplatform/windowsvista-64c-centos5-32-windowsvista-64d +44 -0
  135. data/test/fixtures/osinfo-version-0/cisconx-64a +1 -1
  136. data/test/fixtures/osinfo-version-0/windows10ent-32d +22 -0
  137. data/test/fixtures/osinfo-version-0/windows10ent-64f +22 -0
  138. data/test/fixtures/osinfo-version-0/windows10pro-64m +22 -0
  139. data/test/fixtures/osinfo-version-0/windows2003-6432d +22 -0
  140. data/test/fixtures/osinfo-version-0/windows2003-64c +22 -0
  141. data/test/fixtures/osinfo-version-0/windows2003r2-32f +22 -0
  142. data/test/fixtures/osinfo-version-0/windows2003r2-6432aulcdfm +27 -0
  143. data/test/fixtures/osinfo-version-0/windows2003r2-64m +22 -0
  144. data/test/fixtures/osinfo-version-0/windows2008-6432u +22 -0
  145. data/test/fixtures/osinfo-version-0/windows2008-64a +21 -0
  146. data/test/fixtures/osinfo-version-0/windows2008r2-6432c +22 -0
  147. data/test/fixtures/osinfo-version-0/windows2008r2-64l +22 -0
  148. data/test/fixtures/osinfo-version-0/windows2012-6432f +22 -0
  149. data/test/fixtures/osinfo-version-0/windows2012-64d +22 -0
  150. data/test/fixtures/osinfo-version-0/windows2012r2-6432aulcdfm +27 -0
  151. data/test/fixtures/osinfo-version-0/windows2012r2-64m +22 -0
  152. data/test/fixtures/osinfo-version-0/windows7-64a +21 -0
  153. data/test/fixtures/osinfo-version-0/windows8-64u +22 -0
  154. data/test/fixtures/osinfo-version-0/windows81-64l +22 -0
  155. data/test/fixtures/osinfo-version-0/windowsvista-64c +22 -0
  156. data/test/fixtures/osinfo-version-1/cisconx-64a +1 -1
  157. data/test/fixtures/osinfo-version-1/windows10ent-32d +22 -0
  158. data/test/fixtures/osinfo-version-1/windows10ent-64f +22 -0
  159. data/test/fixtures/osinfo-version-1/windows10pro-64m +22 -0
  160. data/test/fixtures/osinfo-version-1/windows2003-6432d +22 -0
  161. data/test/fixtures/osinfo-version-1/windows2003-64c +22 -0
  162. data/test/fixtures/osinfo-version-1/windows2003r2-32f +22 -0
  163. data/test/fixtures/osinfo-version-1/windows2003r2-6432aulcdfm +27 -0
  164. data/test/fixtures/osinfo-version-1/windows2003r2-64m +22 -0
  165. data/test/fixtures/osinfo-version-1/windows2008-6432u +22 -0
  166. data/test/fixtures/osinfo-version-1/windows2008-64a +21 -0
  167. data/test/fixtures/osinfo-version-1/windows2008r2-6432c +22 -0
  168. data/test/fixtures/osinfo-version-1/windows2008r2-64l +22 -0
  169. data/test/fixtures/osinfo-version-1/windows2012-6432f +22 -0
  170. data/test/fixtures/osinfo-version-1/windows2012-64d +22 -0
  171. data/test/fixtures/osinfo-version-1/windows2012r2-6432aulcdfm +27 -0
  172. data/test/fixtures/osinfo-version-1/windows2012r2-64m +22 -0
  173. data/test/fixtures/osinfo-version-1/windows7-64a +21 -0
  174. data/test/fixtures/osinfo-version-1/windows8-64u +22 -0
  175. data/test/fixtures/osinfo-version-1/windows81-64l +22 -0
  176. data/test/fixtures/osinfo-version-1/windowsvista-64c +22 -0
  177. data/test/fixtures/per-host-settings/arbitrary-settings.yaml +57 -0
  178. data/test/fixtures/per-host-settings/every-hypervisor.yaml +30 -0
  179. data/test/fixtures/per-host-settings/malformed-input.yaml +5 -0
  180. data/test/test_stdout.rb +2 -2
  181. data/test/util/generator_helpers.rb +12 -4
  182. metadata +167 -6
  183. data/lib/beaker-hostgenerator/data/vmpooler.rb +0 -467
  184. data/lib/beaker-hostgenerator/generator/vmpooler.rb +0 -59
  185. data/test/test_util.rb +0 -26
@@ -1,467 +0,0 @@
1
- module BeakerHostGenerator
2
- module Data
3
- module Vmpooler
4
-
5
- OSINFO = {
6
- 'arista4-32' => {
7
- 'platform' => 'eos-4-i386',
8
- 'template' => 'arista-4-i386'
9
- },
10
- 'centos4-32' => {
11
- 'platform' => 'el-4-i386',
12
- 'template' => 'centos-4-i386'
13
- },
14
- 'centos4-64' => {
15
- 'platform' => 'el-4-x86_64',
16
- 'template' => 'centos-4-x86_64'
17
- },
18
- 'centos5-32' => {
19
- 'platform' => 'el-5-i386',
20
- 'template' => 'centos-5-i386'
21
- },
22
- 'centos5-64' => {
23
- 'platform' => 'el-5-x86_64',
24
- 'template' => 'centos-5-x86_64'
25
- },
26
- 'centos6-32' => {
27
- 'platform' => 'el-6-i386',
28
- 'template' => 'centos-6-i386'
29
- },
30
- 'centos6-64' => {
31
- 'platform' => 'el-6-x86_64',
32
- 'template' => 'centos-6-x86_64'
33
- },
34
- 'centos7-64' => {
35
- 'platform' => 'el-7-x86_64',
36
- 'template' => 'centos-7-x86_64'
37
- },
38
- 'cisconx-64' => {
39
- 'platform' => 'cisco_nexus-7-x86_64',
40
- 'template' => 'cisco-nxos-9k-x86_64',
41
- 'vrf' => 'management',
42
- 'ssh' => {
43
- 'user' => 'beaker'
44
- }
45
- },
46
- 'ciscoxr-64' => {
47
- 'platform' => 'cisco_ios_xr-6-x86_64',
48
- 'template' => 'cisco-exr-9k-x86_64'
49
- },
50
- 'cumulus25-64' => {
51
- 'platform' => 'cumulus-2.5-x86_64',
52
- 'template' => 'cumulus-vx-25-x86_64'
53
- },
54
- 'debian6-32' => {
55
- 'platform' => 'debian-6-i386',
56
- 'template' => 'debian-6-i386'
57
- },
58
- 'debian6-64' => {
59
- 'platform' => 'debian-6-amd64',
60
- 'template' => 'debian-6-x86_64'
61
- },
62
- 'debian7-32' => {
63
- 'platform' => 'debian-7-i386',
64
- 'template' => 'debian-7-i386'
65
- },
66
- 'debian7-64' => {
67
- 'platform' => 'debian-7-amd64',
68
- 'template' => 'debian-7-x86_64'
69
- },
70
- 'debian8-32' => {
71
- 'platform' => 'debian-8-i386',
72
- 'template' => 'debian-8-i386'
73
- },
74
- 'debian8-64' => {
75
- 'platform' => 'debian-8-amd64',
76
- 'template' => 'debian-8-x86_64'
77
- },
78
- 'debian9-32' => {
79
- 'platform' => 'debian-9-i386',
80
- 'template' => 'debian-9-i386'
81
- },
82
- 'debian9-64' => {
83
- 'platform' => 'debian-9-amd64',
84
- 'template' => 'debian-9-x86_64'
85
- },
86
- 'oracle5-32' => {
87
- 'platform' => 'el-5-i386',
88
- 'template' => 'oracle-5-i386'
89
- },
90
- 'oracle5-64' => {
91
- 'platform' => 'el-5-x86_64',
92
- 'template' => 'oracle-5-x86_64'
93
- },
94
- 'oracle6-32' => {
95
- 'platform' => 'el-6-i386',
96
- 'template' => 'oracle-6-i386'
97
- },
98
- 'oracle6-64' => {
99
- 'platform' => 'el-6-x86_64',
100
- 'template' => 'oracle-6-x86_64'
101
- },
102
- 'oracle7-64' => {
103
- 'platform' => 'el-7-x86_64',
104
- 'template' => 'oracle-7-x86_64'
105
- },
106
- 'osx109-64' => {
107
- 'platform' => 'osx-10.9-x86_64',
108
- 'template' => 'osx-109-x86_64'
109
- },
110
- 'osx1010-64' => {
111
- 'platform' => 'osx-10.10-x86_64',
112
- 'template' => 'osx-1010-x86_64'
113
- },
114
- 'osx1011-64' => {
115
- 'platform' => 'osx-10.11-x86_64',
116
- 'template' => 'osx-1011-x86_64'
117
- },
118
- 'redhat4-32' => {
119
- 'platform' => 'el-4-i386',
120
- 'template' => 'redhat-4-i386'
121
- },
122
- 'redhat4-64' => {
123
- 'platform' => 'el-4-x86_64',
124
- 'template' => 'redhat-4-x86_64'
125
- },
126
- 'redhat5-32' => {
127
- 'platform' => 'el-5-i386',
128
- 'template' => 'redhat-5-i386'
129
- },
130
- 'redhat5-64' => {
131
- 'platform' => 'el-5-x86_64',
132
- 'template' => 'redhat-5-x86_64'
133
- },
134
- 'redhat6-32' => {
135
- 'platform' => 'el-6-i386',
136
- 'template' => 'redhat-6-i386'
137
- },
138
- 'redhat6-64' => {
139
- 'platform' => 'el-6-x86_64',
140
- 'template' => 'redhat-6-x86_64'
141
- },
142
- 'redhat7-64' => {
143
- 'platform' => 'el-7-x86_64',
144
- 'template' => 'redhat-7-x86_64'
145
- },
146
- 'fedora14-32' => {
147
- 'platform' => 'fedora-14-i386',
148
- 'template' => 'fedora-14-i386'
149
- },
150
- 'fedora19-32' => {
151
- 'platform' => 'fedora-19-i386',
152
- 'template' => 'fedora-19-i386'
153
- },
154
- 'fedora19-64' => {
155
- 'platform' => 'fedora-19-x86_64',
156
- 'template' => 'fedora-19-x86_64'
157
- },
158
- 'fedora20-32' => {
159
- 'platform' => 'fedora-20-i386',
160
- 'template' => 'fedora-20-i386'
161
- },
162
- 'fedora20-64' => {
163
- 'platform' => 'fedora-20-x86_64',
164
- 'template' => 'fedora-20-x86_64'
165
- },
166
- 'fedora21-32' => {
167
- 'platform' => 'fedora-21-i386',
168
- 'template' => 'fedora-21-i386'
169
- },
170
- 'fedora21-64' => {
171
- 'platform' => 'fedora-21-x86_64',
172
- 'template' => 'fedora-21-x86_64'
173
- },
174
- 'fedora22-32' => {
175
- 'platform' => 'fedora-22-i386',
176
- 'template' => 'fedora-22-i386'
177
- },
178
- 'fedora22-64' => {
179
- 'platform' => 'fedora-22-x86_64',
180
- 'template' => 'fedora-22-x86_64'
181
- },
182
- 'fedora23-32' => {
183
- 'platform' => 'fedora-23-i386',
184
- 'template' => 'fedora-23-i386'
185
- },
186
- 'fedora23-64' => {
187
- 'platform' => 'fedora-23-x86_64',
188
- 'template' => 'fedora-23-x86_64'
189
- },
190
- 'opensuse11-32' => {
191
- 'platform' => 'opensuse-11-i386',
192
- 'template' => 'opensuse-11-i386'
193
- },
194
- 'opensuse11-64' => {
195
- 'platform' => 'opensuse-11-x86_64',
196
- 'template' => 'opensuse-11-x86_64'
197
- },
198
- 'scientific5-32' => {
199
- 'platform' => 'el-5-i386',
200
- 'template' => 'scientific-5-i386'
201
- },
202
- 'scientific5-64' => {
203
- 'platform' => 'el-5-x86_64',
204
- 'template' => 'scientific-5-x86_64'
205
- },
206
- 'scientific6-32' => {
207
- 'platform' => 'el-6-i386',
208
- 'template' => 'scientific-6-i386'
209
- },
210
- 'scientific6-64' => {
211
- 'platform' => 'el-6-x86_64',
212
- 'template' => 'scientific-6-x86_64'
213
- },
214
- 'scientific7-64' => {
215
- 'platform' => 'el-7-x86_64',
216
- 'template' => 'scientific-7-x86_64'
217
- },
218
- 'sles10-32' => {
219
- 'platform' => 'sles-10-i386',
220
- 'template' => 'sles-10-i386'
221
- },
222
- 'sles10-64' => {
223
- 'platform' => 'sles-10-x86_64',
224
- 'template' => 'sles-10-x86_64'
225
- },
226
- 'sles11-32' => {
227
- 'platform' => 'sles-11-i386',
228
- 'template' => 'sles-11-i386'
229
- },
230
- 'sles11-64' => {
231
- 'platform' => 'sles-11-x86_64',
232
- 'template' => 'sles-11-x86_64'
233
- },
234
- 'sles12-64' => {
235
- 'platform' => 'sles-12-x86_64',
236
- 'template' => 'sles-12-x86_64'
237
- },
238
- 'solaris10-32' => {
239
- 'platform' => 'solaris-10-i386',
240
- 'template' => 'solaris-10-x86_64'
241
- },
242
- 'solaris10-64' => {
243
- 'platform' => 'solaris-10-i386',
244
- 'template' => 'solaris-10-x86_64'
245
- },
246
- 'solaris11-32' => {
247
- 'platform' => 'solaris-11-i386',
248
- 'template' => 'solaris-11-x86_64'
249
- },
250
- 'solaris11-64' => {
251
- 'platform' => 'solaris-11-i386',
252
- 'template' => 'solaris-11-x86_64'
253
- },
254
- 'solaris112-32' => {
255
- 'platform' => 'solaris-11.2-i386',
256
- 'template' => 'solaris-112-x86_64'
257
- },
258
- 'solaris112-64' => {
259
- 'platform' => 'solaris-11.2-i386',
260
- 'template' => 'solaris-112-x86_64'
261
- },
262
- 'ubuntu1004-32' => {
263
- 'platform' => 'ubuntu-10.04-i386',
264
- 'template' => 'ubuntu-1004-i386'
265
- },
266
- 'ubuntu1004-64' => {
267
- 'platform' => 'ubuntu-10.04-amd64',
268
- 'template' => 'ubuntu-1004-x86_64'
269
- },
270
- 'ubuntu1204-32' => {
271
- 'platform' => 'ubuntu-12.04-i386',
272
- 'template' => 'ubuntu-1204-i386'
273
- },
274
- 'ubuntu1204-64' => {
275
- 'platform' => 'ubuntu-12.04-amd64',
276
- 'template' => 'ubuntu-1204-x86_64'
277
- },
278
- 'ubuntu1404-32' => {
279
- 'platform' => 'ubuntu-14.04-i386',
280
- 'template' => 'ubuntu-1404-i386'
281
- },
282
- 'ubuntu1404-64' => {
283
- 'platform' => 'ubuntu-14.04-amd64',
284
- 'template' => 'ubuntu-1404-x86_64'
285
- },
286
- 'ubuntu1504-32' => {
287
- 'platform' => 'ubuntu-15.04-i386',
288
- 'template' => 'ubuntu-1504-i386'
289
- },
290
- 'ubuntu1504-64' => {
291
- 'platform' => 'ubuntu-15.04-amd64',
292
- 'template' => 'ubuntu-1504-x86_64'
293
- },
294
- 'ubuntu1510-32' => {
295
- 'platform' => 'ubuntu-15.10-i386',
296
- 'template' => 'ubuntu-1510-i386'
297
- },
298
- 'ubuntu1510-64' => {
299
- 'platform' => 'ubuntu-15.10-amd64',
300
- 'template' => 'ubuntu-1510-x86_64'
301
- },
302
- 'ubuntu1604-32' => {
303
- 'platform' => 'ubuntu-16.04-i386',
304
- 'template' => 'ubuntu-1604-i386'
305
- },
306
- 'ubuntu1604-64' => {
307
- 'platform' => 'ubuntu-16.04-amd64',
308
- 'template' => 'ubuntu-1604-x86_64'
309
- },
310
- 'windows2003-64' => {
311
- 'platform' => 'windows-2003-64',
312
- 'template' => 'win-2003-x86_64',
313
- 'ruby_arch' => 'x64'
314
- },
315
- 'windows2003-6432' => {
316
- 'platform' => 'windows-2003-64',
317
- 'template' => 'win-2003-x86_64',
318
- 'ruby_arch' => 'x86'
319
- },
320
- 'windows2003r2-32' => {
321
- 'platform' => 'windows-2003r2-32',
322
- 'template' => 'win-2003r2-i386',
323
- 'ruby_arch' => 'x86'
324
- },
325
- 'windows2003r2-64' => {
326
- 'platform' => 'windows-2003r2-64',
327
- 'template' => 'win-2003r2-x86_64',
328
- 'ruby_arch' => 'x64'
329
- },
330
- 'windows2003r2-6432' => {
331
- 'platform' => 'windows-2003r2-64',
332
- 'template' => 'win-2003r2-x86_64',
333
- 'ruby_arch' => 'x86'
334
- },
335
- 'windows2008-64' => {
336
- 'platform' => 'windows-2008-64',
337
- 'template' => 'win-2008-x86_64',
338
- 'ruby_arch' => 'x64'
339
- },
340
- 'windows2008-6432' => {
341
- 'platform' => 'windows-2008-64',
342
- 'template' => 'win-2008-x86_64',
343
- 'ruby_arch' => 'x86'
344
- },
345
- 'windows2008r2-64' => {
346
- 'platform' => 'windows-2008r2-64',
347
- 'template' => 'win-2008r2-x86_64',
348
- 'ruby_arch' => 'x64'
349
- },
350
- 'windows2008r2-6432' => {
351
- 'platform' => 'windows-2008r2-64',
352
- 'template' => 'win-2008r2-x86_64',
353
- 'ruby_arch' => 'x86'
354
- },
355
- 'windows2012-64' => {
356
- 'platform' => 'windows-2012-64',
357
- 'template' => 'win-2012-x86_64',
358
- 'ruby_arch' => 'x64'
359
- },
360
- 'windows2012-6432' => {
361
- 'platform' => 'windows-2012-64',
362
- 'template' => 'win-2012-x86_64',
363
- 'ruby_arch' => 'x86'
364
- },
365
- 'windows2012r2-64' => {
366
- 'platform' => 'windows-2012r2-64',
367
- 'template' => 'win-2012r2-x86_64',
368
- 'ruby_arch' => 'x64'
369
- },
370
- 'windows2012r2-6432' => {
371
- 'platform' => 'windows-2012r2-64',
372
- 'template' => 'win-2012r2-x86_64',
373
- 'ruby_arch' => 'x86'
374
- },
375
- 'windows7-64' => {
376
- 'platform' => 'windows-7-64',
377
- 'template' => 'win-7-x86_64',
378
- 'ruby_arch' => 'x64'
379
- },
380
- 'windows8-64' => {
381
- 'platform' => 'windows-8-64',
382
- 'template' => 'win-8-x86_64',
383
- 'ruby_arch' => 'x64'
384
- },
385
- 'windows81-64' => {
386
- 'platform' => 'windows-8.1-64',
387
- 'template' => 'win-81-x86_64',
388
- 'ruby_arch' => 'x64'
389
- },
390
- 'windowsvista-64' => {
391
- 'platform' => 'windows-vista-64',
392
- 'template' => 'win-vista-x86_64',
393
- 'ruby_arch' => 'x64'
394
- },
395
- 'windows10ent-32' => {
396
- 'platform' => 'windows-10ent-32',
397
- 'template' => 'win-10-ent-i386',
398
- 'ruby_arch' => 'x86'
399
- },
400
- 'windows10ent-64' => {
401
- 'platform' => 'windows-10ent-64',
402
- 'template' => 'win-10-ent-x86_64',
403
- 'ruby_arch' => 'x64'
404
- },
405
- 'windows10pro-64' => {
406
- 'platform' => 'windows-10pro-64',
407
- 'template' => 'win-10-pro-x86_64',
408
- 'ruby_arch' => 'x64'
409
- },
410
- }
411
-
412
- OSINFO_BHGv1 = {
413
- 'centos4-32' => {
414
- 'platform' => 'centos-4-i386',
415
- 'template' => 'centos-4-i386'
416
- },
417
- 'centos4-64' => {
418
- 'platform' => 'centos-4-x86_64',
419
- 'template' => 'centos-4-x86_64'
420
- },
421
- 'centos5-32' => {
422
- 'platform' => 'centos-5-i386',
423
- 'template' => 'centos-5-i386'
424
- },
425
- 'centos5-64' => {
426
- 'platform' => 'centos-5-x86_64',
427
- 'template' => 'centos-5-x86_64'
428
- },
429
- 'centos6-32' => {
430
- 'platform' => 'centos-6-i386',
431
- 'template' => 'centos-6-i386'
432
- },
433
- 'centos6-64' => {
434
- 'platform' => 'centos-6-x86_64',
435
- 'template' => 'centos-6-x86_64'
436
- },
437
- 'centos7-64' => {
438
- 'platform' => 'centos-7-x86_64',
439
- 'template' => 'centos-7-x86_64'
440
- },
441
- }
442
-
443
- VMPOOLER_CONFIG = {
444
- 'HOSTS' => {},
445
- 'CONFIG' => {
446
- 'pooling_api' => 'http://vmpooler.delivery.puppetlabs.net/'
447
- }
448
- }
449
-
450
- def get_osinfo(bhg_version=0)
451
- osinfo = {}
452
- case bhg_version
453
- when 0
454
- osinfo.deep_merge! OSINFO
455
- when 1
456
- osinfo.deep_merge! OSINFO
457
- osinfo.deep_merge! OSINFO_BHGv1
458
- else
459
- raise "Invalid beaker-hostgenerator version: #{bhg_version}"
460
- end
461
- return osinfo
462
- end
463
-
464
- module_function :get_osinfo
465
- end
466
- end
467
- end