beaker-hostgenerator 1.1.21 → 1.1.22
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d2711d7c68ad2a05e15df506b5273fb4c32c27
|
4
|
+
data.tar.gz: 9f11eaaae060c2121c8ad96041b59f18f3659d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c5345de3b032e22258a48c85c45fb7d9e09a07e55a57b1849470563c3c4bd477670e925d2cd392fc786ea76996651c88a0f57cc5f60513fae60a58f129682f
|
7
|
+
data.tar.gz: 78829a597042ca92fca5c20a74bf125d0a59fa3e6e283babf7a3ce8535c8698cd4274eee1e659bfe4e0217993368d1599a933a770103aac3cf9566c23a18ee8e
|
@@ -297,6 +297,9 @@ module BeakerHostGenerator
|
|
297
297
|
'apt-get update && apt-get install -y cron locales-all net-tools wget'
|
298
298
|
],
|
299
299
|
},
|
300
|
+
:vagrant => {
|
301
|
+
'box' => 'debian/wheezy64',
|
302
|
+
},
|
300
303
|
:vmpooler => {
|
301
304
|
'template' => 'debian-7-x86_64'
|
302
305
|
}
|
@@ -322,6 +325,9 @@ module BeakerHostGenerator
|
|
322
325
|
'apt-get update && apt-get install -y cron locales-all net-tools wget'
|
323
326
|
]
|
324
327
|
},
|
328
|
+
:vagrant => {
|
329
|
+
'box' => 'debian/jessie64',
|
330
|
+
},
|
325
331
|
:vmpooler => {
|
326
332
|
'template' => 'debian-8-x86_64'
|
327
333
|
}
|
@@ -354,6 +360,9 @@ module BeakerHostGenerator
|
|
354
360
|
'apt-get update && apt-get install -y cron locales-all net-tools wget systemd-sysv gnupg'
|
355
361
|
]
|
356
362
|
},
|
363
|
+
:vagrant => {
|
364
|
+
'box' => 'debian/stretch64',
|
365
|
+
},
|
357
366
|
:vmpooler => {
|
358
367
|
'template' => 'debian-9-x86_64'
|
359
368
|
}
|
@@ -46,6 +46,8 @@ module BeakerHostGenerator
|
|
46
46
|
def self.builtin_hypervisors()
|
47
47
|
{
|
48
48
|
'vmpooler' => BeakerHostGenerator::Hypervisor::Vmpooler,
|
49
|
+
'vagrant' => BeakerHostGenerator::Hypervisor::Vagrant,
|
50
|
+
'vagrant_libvirt' => BeakerHostGenerator::Hypervisor::Vagrant,
|
49
51
|
'docker' => BeakerHostGenerator::Hypervisor::Docker,
|
50
52
|
'abs' => BeakerHostGenerator::Hypervisor::ABS
|
51
53
|
}
|
@@ -96,5 +98,6 @@ end
|
|
96
98
|
# hypervisor implementation files.
|
97
99
|
require 'beaker-hostgenerator/hypervisor/unknown'
|
98
100
|
require 'beaker-hostgenerator/hypervisor/vmpooler'
|
101
|
+
require 'beaker-hostgenerator/hypervisor/vagrant'
|
99
102
|
require 'beaker-hostgenerator/hypervisor/docker'
|
100
103
|
require 'beaker-hostgenerator/hypervisor/abs'
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'beaker-hostgenerator/data'
|
2
|
+
require 'beaker-hostgenerator/hypervisor'
|
3
|
+
require 'deep_merge'
|
4
|
+
|
5
|
+
module BeakerHostGenerator
|
6
|
+
module Hypervisor
|
7
|
+
class Vagrant < BeakerHostGenerator::Hypervisor::Interface
|
8
|
+
include BeakerHostGenerator::Data
|
9
|
+
|
10
|
+
def generate_node(node_info, base_config, bhg_version)
|
11
|
+
base_config['hypervisor'] = 'vagrant'
|
12
|
+
|
13
|
+
if node_info['ostype'] =~ /^centos/
|
14
|
+
base_config['box'] = node_info['ostype'].sub(/(\d)/, '/\1')
|
15
|
+
elsif node_info['ostype'] =~ /^fedora/
|
16
|
+
base_config['box'] = node_info['ostype'].sub(/(\d)/, '/\1') + 'cloud-base'
|
17
|
+
else
|
18
|
+
base_config['box'] = "generic/#{node_info['ostype']}"
|
19
|
+
end
|
20
|
+
|
21
|
+
# We don't use this by default
|
22
|
+
base_config['synced_folder'] = 'disabled'
|
23
|
+
|
24
|
+
platform = node_info['platform']
|
25
|
+
platform_info = get_platform_info(bhg_version, platform, :vagrant)
|
26
|
+
base_config.deep_merge! platform_info
|
27
|
+
|
28
|
+
return base_config
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-hostgenerator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Branan Purvine-Riley
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-11-
|
13
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -221,6 +221,7 @@ files:
|
|
221
221
|
- lib/beaker-hostgenerator/hypervisor/abs.rb
|
222
222
|
- lib/beaker-hostgenerator/hypervisor/docker.rb
|
223
223
|
- lib/beaker-hostgenerator/hypervisor/unknown.rb
|
224
|
+
- lib/beaker-hostgenerator/hypervisor/vagrant.rb
|
224
225
|
- lib/beaker-hostgenerator/hypervisor/vmpooler.rb
|
225
226
|
- lib/beaker-hostgenerator/parser.rb
|
226
227
|
- lib/beaker-hostgenerator/roles.rb
|