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: d3beb95b4423193b2828d8597a74efef5fb23fa4
4
- data.tar.gz: 878feb34f6e85b03dfdd60404cddeaed6c5394cc
3
+ metadata.gz: 23d2711d7c68ad2a05e15df506b5273fb4c32c27
4
+ data.tar.gz: 9f11eaaae060c2121c8ad96041b59f18f3659d66
5
5
  SHA512:
6
- metadata.gz: 4b52d6d181f70851bb93d3d577eac8439bf7b4fbaa97acf682f5623dfa5584f832ca3e602298471ced4bfc66065f6f5a4e5f9ae11bce507b04367efdb0225158
7
- data.tar.gz: b71653ad9f74b60f38fdb50807abbd1e0d6e24163320eec971689e8b92ab0d178896889df4e2f5c4c3bb5b4713076450c1d4aad43d7c3a35f4482982f69159cc
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
@@ -1,5 +1,5 @@
1
1
  module BeakerHostGenerator
2
2
  module Version
3
- STRING = '1.1.21'
3
+ STRING = '1.1.22'
4
4
  end
5
5
  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.21
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-19 00:00:00.000000000 Z
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