beaker-hostgenerator 1.2.10 → 1.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.
data/CODEOWNERS CHANGED
@@ -1 +0,0 @@
1
- * @puppetlabs/beaker
data/Gemfile CHANGED
@@ -1,7 +1,11 @@
1
- source ENV['GEM_SOURCE'] || "https://rubygems.org"
1
+ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
5
  if File.exists? "#{__FILE__}.local"
6
6
  eval(File.read("#{__FILE__}.local"), binding)
7
7
  end
8
+
9
+ group :release do
10
+ gem 'github_changelog_generator', :require => false
11
+ end
data/HISTORY.md CHANGED
@@ -1,29 +1,56 @@
1
- # worker - History
2
- ## Tags
3
- * [LATEST - 7 Jun, 2017 (06b6a0da)](#LATEST)
4
- * [0.8.4 - 6 Apr, 2017 (77943fb2)](#0.8.4)
5
- * [0.8.3 - 7 Feb, 2017 (79e8d717)](#0.8.3)
6
- * [0.8.2 - 3 Jan, 2017 (a61487bf)](#0.8.2)
7
- * [0.8.1 - 21 Dec, 2016 (2648029d)](#0.8.1)
8
- * [0.8.0 - 4 Oct, 2016 (2e6dc11e)](#0.8.0)
9
- * [0.7.4 - 26 Sep, 2016 (1e102ccd)](#0.7.4)
10
- * [0.7.3 - 11 Aug, 2016 (87c75523)](#0.7.3)
11
- * [0.7.2 - 13 Jul, 2016 (cee53bcc)](#0.7.2)
12
- * [0.7.1 - 29 Jun, 2016 (be332325)](#0.7.1)
13
- * [0.7.0 - 13 Jun, 2016 (f0aafe8d)](#0.7.0)
14
- * [0.6.0 - 11 May, 2016 (c807eb0d)](#0.6.0)
15
- * [0.5.0 - 31 Mar, 2016 (fa3ae0c8)](#0.5.0)
16
- * [0.4.0 - 10 Feb, 2016 (dc333b1c)](#0.4.0)
17
- * [0.3.3 - 3 Feb, 2016 (41051da9)](#0.3.3)
18
- * [0.3.2 - 28 Jan, 2016 (299df8ec)](#0.3.2)
19
- * [0.3.1 - 30 Dec, 2015 (7a3f10ca)](#0.3.1)
20
- * [0.3.0 - 30 Dec, 2015 (4b03eaf4)](#0.3.0)
21
- * [0.2.0 - 22 Dec, 2015 (dfa33e5f)](#0.2.0)
22
- * [0.1.0 - 21 Dec, 2015 (474f4ccb)](#0.1.0)
23
- * [0.0.1 - 7 Oct, 2015 (d99251e6)](#0.0.1)
24
-
1
+ ## [1.1.26](https://github.com/voxpupuli/modulesync/tree/1.1.26) (2019-02-19)
2
+ - Add platform
3
+ - debian10-64
4
+ - debian10-32
5
+ - Change amazon7-ARM64 to use el-7-aarch64 platform
6
+
7
+ ## [1.1.25] - 2019-01-07
8
+ - Fix --hypervisor vagrant_libvirt
9
+
10
+ ## [1.1.24] - 2019-01-03
11
+ - Add platform:
12
+ - amazon7-ARM64
13
+
14
+ ## [1.1.23] - 2018-12-13
15
+ - Add platforms:
16
+ - redhat8-64
17
+ - osx1014-64
18
+
19
+ ## [1.1.22] - 2018-11-21
20
+ - Add vagrant hypervisor for debian plaforms
21
+
22
+ ## [1.1.21] - 2018-11-19
23
+ - Disable getty when using docker
24
+
25
+ ## [1.1.20] - 2018-11-14
26
+ - Add gnupg to docker_image_commands for debian9-64
27
+ - Add platform:
28
+ - fedora29-64
29
+
30
+ ## [1.1.19] - 2018-10-18
31
+ - Add platforms:
32
+ - solaris114-32
33
+ - solaris114-64
34
+
35
+ ## [1.1.18] - 2018-10-10
36
+ - Add platform:
37
+ - ubuntu1810-64
38
+
39
+ ## [1.1.17] - 2018-10-05
40
+ - Add platforms:
41
+ - windows2019_core-64
42
+ - windows2019_core-6432
43
+
44
+ ## [1.1.16] - 2018-09-04
45
+ - Install iproute2 on ubuntu18.04 for containers
46
+
47
+ ## [1.1.15] - 2018-08-16
48
+ - Add platforms:
49
+ - panos61-64
50
+ - panos71-64
25
51
  ## Details
26
- ### <a name = "LATEST">LATEST - 7 Jun, 2017 (06b6a0da)
52
+
53
+ ### 0.9.0 - 7 Jun, 2017 (06b6a0da)
27
54
 
28
55
  * (GEM) update beaker-hostgenerator version to 0.9.0 (06b6a0da)
29
56
 
@@ -1747,6 +1774,6 @@ This commit updates the code to use the new constant name.
1747
1774
 
1748
1775
  * README typo fixed (ba88e07e)
1749
1776
 
1750
- ### <a name = "0.0.1">0.0.1 - 7 Oct, 2015 (d99251e6)
1777
+ ### 0.0.1 - 7 Oct, 2015 (d99251e6)
1751
1778
 
1752
1779
  * Initial release.
data/README.md CHANGED
@@ -453,6 +453,20 @@ contribute.
453
453
  If you have questions or comments, please contact the Beaker team at the
454
454
  `#puppet-dev` IRC channel on chat.freenode.org
455
455
 
456
+ ## Make a new release
457
+
458
+ To make a new release:
459
+
460
+ * Switch to a new git branch
461
+ * Update `lib/beaker-hostgenerator/version.rb` to the new version
462
+ * export `CHANGELOG_GITHUB_TOKEN` with a GitHub access token
463
+ * run `bundle exec rake changelog`
464
+ * Review the CHANGELOG.md
465
+ * Create a PR
466
+ * Get it reviewed and merged
467
+ * Create a signed git tag with the same version number and push it
468
+ * GitHub actions will do the release
469
+
456
470
  ## License
457
471
 
458
472
  `beaker-hostgenerator` is distributed under the
data/Rakefile CHANGED
@@ -55,3 +55,27 @@ task 'test:spec' => ['test:spec:run', 'test:spec:minitest']
55
55
  # global defaults
56
56
  task :test => 'test:spec'
57
57
  task :default => :test
58
+
59
+ begin
60
+ require 'github_changelog_generator/task'
61
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
62
+ config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
63
+ config.exclude_labels = %w[duplicate question invalid wontfix wont-fix modulesync skip-changelog]
64
+ config.user = 'voxpupuli'
65
+ config.project = 'beaker-hostgenerator'
66
+ config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
67
+ end
68
+
69
+ # Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715
70
+ require 'rbconfig'
71
+ if RbConfig::CONFIG['host_os'] =~ /linux/
72
+ task :changelog do
73
+ puts 'Fixing line endings...'
74
+ changelog_file = File.join(__dir__, 'CHANGELOG.md')
75
+ changelog_txt = File.read(changelog_file)
76
+ new_contents = changelog_txt.gsub(/\r\n/, "\n")
77
+ File.open(changelog_file, 'w') { |file| file.puts new_contents }
78
+ end
79
+ end
80
+ rescue LoadError
81
+ end
@@ -23,8 +23,8 @@ eos
23
23
  s.add_development_dependency 'minitest'
24
24
  s.add_development_dependency 'rspec', '~> 3.0'
25
25
  s.add_development_dependency 'rspec-its'
26
- s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14.0'
27
- s.add_development_dependency 'rake', '~> 10.1'
26
+ s.add_development_dependency 'fakefs', '>= 0.6', '< 2.0'
27
+ s.add_development_dependency 'rake', '~> 13.0'
28
28
  s.add_development_dependency 'simplecov'
29
29
  s.add_development_dependency 'pry', '~> 0.10'
30
30
 
@@ -80,7 +80,27 @@ module BeakerHostGenerator
80
80
  # Hypervisor implementations will then grab specific bits of data out of
81
81
  # this hash and combine them to produce the generated hosts output.
82
82
  def osinfo
83
- {
83
+ result = {}
84
+
85
+ # Fedora
86
+ (19..33).each do |release|
87
+ # 32 bit support was dropped in Fedora 31
88
+ if release < 31
89
+ result["fedora#{release}-32"] = {
90
+ :general => {
91
+ 'platform' => "fedora-#{release}-i386"
92
+ }
93
+ }
94
+ end
95
+
96
+ result["fedora#{release}-64"] = {
97
+ :general => {
98
+ 'platform' => "fedora-#{release}-x86_64"
99
+ }
100
+ }
101
+ end
102
+
103
+ result.merge!({
84
104
  'aix53-POWER' => {
85
105
  :general => {
86
106
  'platform' => 'aix-5.3-power',
@@ -156,26 +176,17 @@ module BeakerHostGenerator
156
176
  'centos4-32' => {
157
177
  :general => {
158
178
  'platform' => 'el-4-i386'
159
- },
160
- :vmpooler => {
161
- 'template' => 'centos-4-i386'
162
179
  }
163
180
  },
164
181
  'centos4-64' => {
165
182
  :general => {
166
183
  'platform' => 'el-4-x86_64'
167
- },
168
- :vmpooler => {
169
- 'template' => 'centos-4-x86_64'
170
184
  }
171
185
  },
172
186
  'centos5-32' => {
173
187
  :general => {
174
188
  'platform' => 'el-5-i386',
175
189
  'packaging_platform' => 'el-5-i386'
176
- },
177
- :vmpooler => {
178
- 'template' => 'centos-5-i386'
179
190
  }
180
191
  },
181
192
  'centos5-64' => {
@@ -189,18 +200,12 @@ module BeakerHostGenerator
189
200
  'yum install -y crontabs initscripts iproute openssl sysvinit-tools tar wget which',
190
201
  'sed -i -e "/mingetty/d" /etc/inittab'
191
202
  ]
192
- },
193
- :vmpooler => {
194
- 'template' => 'centos-5-x86_64'
195
203
  }
196
204
  },
197
205
  'centos6-32' => {
198
206
  :general => {
199
207
  'platform' => 'el-6-i386',
200
208
  'packaging_platform' => 'el-6-i386'
201
- },
202
- :vmpooler => {
203
- 'template' => 'centos-6-i386'
204
209
  }
205
210
  },
206
211
  'centos6-64' => {
@@ -215,9 +220,6 @@ module BeakerHostGenerator
215
220
  'yum install -y crontabs initscripts iproute openssl sysvinit-tools tar wget which',
216
221
  'rm /etc/init/tty.conf'
217
222
  ]
218
- },
219
- :vmpooler => {
220
- 'template' => 'centos-6-x86_64'
221
223
  }
222
224
  },
223
225
  'centos7-64' => {
@@ -230,9 +232,6 @@ module BeakerHostGenerator
230
232
  'cp /bin/true /sbin/agetty',
231
233
  'yum install -y crontabs initscripts iproute openssl sysvinit-tools tar wget which ss'
232
234
  ]
233
- },
234
- :vmpooler => {
235
- 'template' => 'centos-7-x86_64'
236
235
  }
237
236
  },
238
237
  'centos8-64' => {
@@ -245,9 +244,6 @@ module BeakerHostGenerator
245
244
  'cp /bin/true /sbin/agetty',
246
245
  'yum install -y crontabs initscripts iproute openssl wget which glibc-langpack-en'
247
246
  ]
248
- },
249
- :vmpooler => {
250
- 'template' => 'centos-8-x86_64'
251
247
  }
252
248
  },
253
249
  # Deprecated
@@ -594,236 +590,110 @@ module BeakerHostGenerator
594
590
  'fedora14-32' => {
595
591
  :general => {
596
592
  'platform' => 'fedora-14-i386'
597
- },
598
- :vmpooler => {
599
- 'template' => 'fedora-14-i386'
600
- }
601
- },
602
- 'fedora19-32' => {
603
- :general => {
604
- 'platform' => 'fedora-19-i386'
605
- },
606
- :vmpooler => {
607
- 'template' => 'fedora-19-i386'
608
- }
609
- },
610
- 'fedora19-64' => {
611
- :general => {
612
- 'platform' => 'fedora-19-x86_64'
613
- },
614
- :vmpooler => {
615
- 'template' => 'fedora-19-x86_64'
616
- }
617
- },
618
- 'fedora20-32' => {
619
- :general => {
620
- 'platform' => 'fedora-20-i386'
621
- },
622
- :vmpooler => {
623
- 'template' => 'fedora-20-i386'
624
- }
625
- },
626
- 'fedora20-64' => {
627
- :general => {
628
- 'platform' => 'fedora-20-x86_64'
629
- },
630
- :vmpooler => {
631
- 'template' => 'fedora-20-x86_64'
632
- }
633
- },
634
- 'fedora21-32' => {
635
- :general => {
636
- 'platform' => 'fedora-21-i386'
637
- },
638
- :vmpooler => {
639
- 'template' => 'fedora-21-i386'
640
- }
641
- },
642
- 'fedora21-64' => {
643
- :general => {
644
- 'platform' => 'fedora-21-x86_64'
645
- },
646
- :vmpooler => {
647
- 'template' => 'fedora-21-x86_64'
648
- }
649
- },
650
- 'fedora22-32' => {
651
- :general => {
652
- 'platform' => 'fedora-22-i386'
653
- },
654
- :vmpooler => {
655
- 'template' => 'fedora-22-i386'
656
- }
657
- },
658
- 'fedora22-64' => {
659
- :general => {
660
- 'platform' => 'fedora-22-x86_64'
661
- },
662
- :vmpooler => {
663
- 'template' => 'fedora-22-x86_64'
664
- }
665
- },
666
- 'fedora23-32' => {
667
- :general => {
668
- 'platform' => 'fedora-23-i386'
669
- },
670
- :vmpooler => {
671
- 'template' => 'fedora-23-i386'
672
- }
673
- },
674
- 'fedora23-64' => {
675
- :general => {
676
- 'platform' => 'fedora-23-x86_64'
677
- },
678
- :vmpooler => {
679
- 'template' => 'fedora-23-x86_64'
680
- }
681
- },
682
- 'fedora24-32' => {
683
- :general => {
684
- 'platform' => 'fedora-24-i386',
685
- 'packaging_platform' => 'fedora-24-i386'
686
- },
687
- :vmpooler => {
688
- 'template' => 'fedora-24-i386'
689
- }
690
- },
691
- 'fedora24-64' => {
692
- :general => {
693
- 'platform' => 'fedora-24-x86_64',
694
- 'packaging_platform' => 'fedora-24-x86_64'
695
- },
696
- :vmpooler => {
697
- 'template' => 'fedora-24-x86_64'
698
- }
699
- },
700
- 'fedora25-32' => {
701
- :general => {
702
- 'platform' => 'fedora-25-i386',
703
- 'packaging_platform' => 'fedora-25-i386'
704
- },
705
- :vmpooler => {
706
- 'template' => 'fedora-25-i386'
707
593
  }
708
594
  },
709
- 'fedora25-64' => {
595
+ 'huaweios6-POWER' => {
710
596
  :general => {
711
- 'platform' => 'fedora-25-x86_64',
712
- 'packaging_platform' => 'fedora-25-x86_64'
597
+ 'platform' => 'huaweios-6-powerpc'
713
598
  },
714
- :vmpooler => {
715
- 'template' => 'fedora-25-x86_64'
599
+ :abs => {
600
+ 'template' => 'huaweios-6-powerpc'
716
601
  }
717
602
  },
718
- 'fedora26-64' => {
603
+ 'panos61-64' => {
719
604
  :general => {
720
- 'platform' => 'fedora-26-x86_64',
721
- 'packaging_platform' => 'fedora-26-x86_64'
605
+ 'platform' => 'palo-alto-6.1.0-x86_64'
722
606
  },
723
607
  :vmpooler => {
724
- 'template' => 'fedora-26-x86_64'
608
+ 'template' => 'palo-alto-6.1.0-x86_64'
725
609
  }
726
610
  },
727
- 'fedora27-64' => {
611
+ 'panos71-64' => {
728
612
  :general => {
729
- 'platform' => 'fedora-27-x86_64',
730
- 'packaging_platform' => 'fedora-27-x86_64'
613
+ 'platform' => 'palo-alto-7.1.0-x86_64'
731
614
  },
732
615
  :vmpooler => {
733
- 'template' => 'fedora-27-x86_64'
616
+ 'template' => 'palo-alto-7.1.0-x86_64'
734
617
  }
735
618
  },
736
- 'fedora28-64' => {
619
+ 'panos81-64' => {
737
620
  :general => {
738
- 'platform' => 'fedora-28-x86_64',
739
- 'packaging_platform' => 'fedora-28-x86_64'
621
+ 'platform' => 'palo-alto-8.1.0-x86_64'
740
622
  },
741
623
  :vmpooler => {
742
- 'template' => 'fedora-28-x86_64'
624
+ 'template' => 'palo-alto-8.1.0-x86_64'
743
625
  }
744
626
  },
745
- 'fedora29-64' => {
627
+ 'opensuse11-32' => {
746
628
  :general => {
747
- 'platform' => 'fedora-29-x86_64',
748
- 'packaging_platform' => 'fedora-29-x86_64'
629
+ 'platform' => 'opensuse-11-i386'
749
630
  },
750
631
  :vmpooler => {
751
- 'template' => 'fedora-29-x86_64'
632
+ 'template' => 'opensuse-11-i386'
752
633
  }
753
634
  },
754
- 'fedora30-64' => {
635
+ 'opensuse11-64' => {
755
636
  :general => {
756
- 'platform' => 'fedora-30-x86_64',
757
- 'packaging_platform' => 'fedora-30-x86_64'
637
+ 'platform' => 'opensuse-11-x86_64'
758
638
  },
759
639
  :vmpooler => {
760
- 'template' => 'fedora-30-x86_64'
640
+ 'template' => 'opensuse-11-x86_64'
761
641
  }
762
642
  },
763
- 'fedora31-64' => {
643
+ 'opensuse15-32' => {
764
644
  :general => {
765
- 'platform' => 'fedora-31-x86_64',
766
- 'packaging_platform' => 'fedora-31-x86_64'
645
+ 'platform' => 'opensuse-15-i386'
767
646
  },
768
- :vmpooler => {
769
- 'template' => 'fedora-31-x86_64'
770
- }
771
- },
772
- 'fedora32-64' => {
773
- :general => {
774
- 'platform' => 'fedora-32-x86_64',
775
- 'packaging_platform' => 'fedora-32-x86_64'
647
+ :docker => {
648
+ 'docker_image_commands' => [
649
+ 'cp /bin/true /sbin/agetty',
650
+ 'zypper install -y cron iproute2 tar wget which'
651
+ ]
776
652
  },
777
653
  :vmpooler => {
778
- 'template' => 'fedora-32-x86_64'
654
+ 'template' => 'opensuse-15-i386'
779
655
  }
780
656
  },
781
- 'huaweios6-POWER' => {
657
+ 'opensuse15-64' => {
782
658
  :general => {
783
- 'platform' => 'huaweios-6-powerpc'
659
+ 'platform' => 'opensuse-15-x86_64'
784
660
  },
785
- :abs => {
786
- 'template' => 'huaweios-6-powerpc'
787
- }
788
- },
789
- 'panos61-64' => {
790
- :general => {
791
- 'platform' => 'palo-alto-6.1.0-x86_64'
661
+ :docker => {
662
+ 'docker_image_commands' => [
663
+ 'cp /bin/true /sbin/agetty',
664
+ 'zypper install -y cron iproute2 tar wget which'
665
+ ]
792
666
  },
793
667
  :vmpooler => {
794
- 'template' => 'palo-alto-6.1.0-x86_64'
668
+ 'template' => 'opensuse-15-x86_64'
795
669
  }
796
670
  },
797
- 'panos71-64' => {
671
+ 'opensuse42-32' => {
798
672
  :general => {
799
- 'platform' => 'palo-alto-7.1.0-x86_64'
673
+ 'platform' => 'opensuse-42-i386'
800
674
  },
801
- :vmpooler => {
802
- 'template' => 'palo-alto-7.1.0-x86_64'
803
- }
804
- },
805
- 'panos81-64' => {
806
- :general => {
807
- 'platform' => 'palo-alto-8.1.0-x86_64'
675
+ :docker => {
676
+ 'docker_image_commands' => [
677
+ 'cp /bin/true /sbin/agetty',
678
+ 'zypper install -y cron iproute2 tar wget which'
679
+ ]
808
680
  },
809
681
  :vmpooler => {
810
- 'template' => 'palo-alto-8.1.0-x86_64'
682
+ 'template' => 'opensuse-42-i386'
811
683
  }
812
684
  },
813
- 'opensuse11-32' => {
685
+ 'opensuse42-64' => {
814
686
  :general => {
815
- 'platform' => 'opensuse-11-i386'
687
+ 'platform' => 'opensuse-42-x86_64'
816
688
  },
817
- :vmpooler => {
818
- 'template' => 'opensuse-11-i386'
819
- }
820
- },
821
- 'opensuse11-64' => {
822
- :general => {
823
- 'platform' => 'opensuse-11-x86_64'
689
+ :docker => {
690
+ 'docker_image_commands' => [
691
+ 'cp /bin/true /sbin/agetty',
692
+ 'zypper install -y cron iproute2 tar wget which'
693
+ ]
824
694
  },
825
695
  :vmpooler => {
826
- 'template' => 'opensuse-11-x86_64'
696
+ 'template' => 'opensuse-42-x86_64'
827
697
  }
828
698
  },
829
699
  'oracle5-32' => {
@@ -933,6 +803,15 @@ module BeakerHostGenerator
933
803
  'template' => 'osx-1015-x86_64'
934
804
  }
935
805
  },
806
+ 'osx11-64' => {
807
+ :general => {
808
+ 'platform' => 'osx-11-x86_64',
809
+ 'packaging_platform' => 'osx-11-x86_64'
810
+ },
811
+ :vmpooler => {
812
+ 'template' => 'macos-112-x86_64'
813
+ }
814
+ },
936
815
  'redhat4-32' => {
937
816
  :general => {
938
817
  'platform' => 'el-4-i386'
@@ -1946,7 +1825,9 @@ module BeakerHostGenerator
1946
1825
  'template' => 'win-10-1809-x86_64'
1947
1826
  }
1948
1827
  }
1949
- }
1828
+ })
1829
+
1830
+ result
1950
1831
  end
1951
1832
 
1952
1833
  def osinfo_bhgv1