vagrant-pe_build 0.17.2 → 0.17.3

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: c6554b62801c7a3c7ad0b0df7a07fe114d683d59
4
- data.tar.gz: 3c5e00f4fb8b670453c1b1124e269b2769ea1810
3
+ metadata.gz: a02539fb15d4f8edef39d6a17306b8b676d4bcc6
4
+ data.tar.gz: f08dfb2c65dbb7977f87734f54017d9e8a17aee6
5
5
  SHA512:
6
- metadata.gz: 295a5458ef78cd65073af65ae83a4c003b3ad5978932f47a87cb64642b5c38b2b46887990f789f235f2f9f7664401f84f94449acd751f212c5f399d0dbf2ebbb
7
- data.tar.gz: f0fae21a1d7c0939b50c9f24fd77aa6f6032edfcd9892bc00dd282e09efae13d685d464feae2835f7819581a5ef49fd7420f262b4735f9d94af311df4883e7ee
6
+ metadata.gz: a0adbdefda1f2aecd1ab0c6df065102678fe68d48480ca93feea27fb176d7fc86204ed6872fbbdb3a846c1e7616cc740c906c9a99b8fad7d5a9fd6a987d3f693
7
+ data.tar.gz: fe2a0692e87d52d0fd7ff752dd31ba2e58fd6548af415f37507417e18f87ea2c0335605d7d4523a887c251a488835343a88c69fb71e963a4d5d929485c8a040f
data/.travis.yml CHANGED
@@ -21,6 +21,6 @@ matrix:
21
21
  - rvm: 2.2.5
22
22
  env: TEST_VAGRANT_VERSION=v1.8.7 BUNDLER_VERSION=1.12.5
23
23
  - rvm: 2.2.5
24
- env: TEST_VAGRANT_VERSION=v1.9.1 BUNDLER_VERSION=1.13.6
24
+ env: TEST_VAGRANT_VERSION=v1.9.3 BUNDLER_VERSION=1.13.6
25
25
  - rvm: 2.2.5
26
26
  env: TEST_VAGRANT_VERSION=HEAD BUNDLER_VERSION=1.13.6
data/CHANGELOG CHANGED
@@ -1,6 +1,23 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.17.3
5
+ ------
6
+
7
+ 2017-04-12
8
+
9
+ This is a backwards compatible bugfix release.
10
+
11
+ * (GH-134) Allow dns-alt-names in cert requests for provisioning
12
+ compile masters.
13
+
14
+ * (GH-135) Fix GPG key updates for 2.7, 2.8 and 2016.2.
15
+
16
+ * (GH-130) Deprecate Vagrant versions earlier than 1.8.
17
+
18
+ * Add support for 2016.4.4, 2017.1.0, 2017.1.1 and 2017.2.0.
19
+
20
+
4
21
  0.17.2
5
22
  ------
6
23
 
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source 'https://rubygems.org'
2
+ require 'rubygems/version'
2
3
 
3
- ENV['TEST_VAGRANT_VERSION'] ||= 'v1.9.1'
4
+ vagrant_branch = ENV['TEST_VAGRANT_VERSION'] || 'v1.9.3'
5
+ vagrant_version = nil
4
6
 
5
7
  # Wrapping gemspec in the :plugins group causes Vagrant 1.5 and newer to
6
8
  # automagically load this plugin during acceptance tests.
@@ -14,17 +16,28 @@ group :development do
14
16
  end
15
17
 
16
18
  group :test do
17
- if ENV['TEST_VAGRANT_VERSION'] == 'HEAD'
18
- gem 'vagrant', :github => 'mitchellh/vagrant', :branch => 'master'
19
+ case vagrant_branch
20
+ when /head/i
21
+ gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git',
22
+ :branch => 'master'
19
23
  else
20
- gem 'vagrant', :github => 'mitchellh/vagrant', :tag => ENV['TEST_VAGRANT_VERSION']
24
+ vagrant_version = Gem::Version.new(vagrant_branch.sub(/^v/, ''))
25
+ gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git',
26
+ :tag => vagrant_branch
21
27
  # FIXME: Hack to allow Vagrant v1.6.5 to install for tests. Remove when
22
28
  # support for 1.6.5 is dropped.
23
29
  gem 'rack', '< 2'
24
30
  end
25
31
 
26
- # Pinned on 12/10/2014. Compatible with Vagrant 1.6.x, 1.7.x and 1.8.x.
27
- gem 'vagrant-spec', :github => 'mitchellh/vagrant-spec', :ref => '1df5a3a'
32
+ if vagrant_branch.match(/head/i) || (vagrant_version > Gem::Version.new('1.9.3'))
33
+ # Pinned on 4/11/2017. Compatible with Vagrant > 1.9.3.
34
+ gem 'vagrant-spec', :git => 'https://github.com/mitchellh/vagrant-spec.git',
35
+ :ref => '1d09951'
36
+ elsif vagrant_version
37
+ # Pinned on 12/10/2014. Compatible with Vagrant 1.6.x -- 1.9.3.
38
+ gem 'vagrant-spec', :git => 'https://github.com/mitchellh/vagrant-spec.git',
39
+ :ref => '1df5a3a'
40
+ end
28
41
  end
29
42
 
30
43
  eval_gemfile "#{__FILE__}.local" if File.exists? "#{__FILE__}.local"
@@ -0,0 +1,23 @@
1
+ require 'vagrant/version'
2
+ require 'rubygems/version'
3
+
4
+ # Check for deprecated Vagrant versions
5
+ class PEBuild::Action::VersionCheck
6
+ MINIMUM_VERSION = '1.8.0'
7
+
8
+ def initialize(app, env)
9
+ @app = app
10
+ end
11
+
12
+ def call(env)
13
+ unless Gem::Version.new(Vagrant::VERSION) > Gem::Version.new(MINIMUM_VERSION)
14
+ env[:env].ui.warn I18n.t(
15
+ 'pebuild.action.version_check.deprecated_vagrant_version',
16
+ minimum_version: MINIMUM_VERSION,
17
+ vagrant_version: Vagrant::VERSION
18
+ )
19
+ end
20
+
21
+ @app.call(env)
22
+ end
23
+ end
@@ -1,5 +1,6 @@
1
1
  module PEBuild
2
2
  module Action
3
3
  require 'pe_build/action/pe_build_dir'
4
+ require 'pe_build/action/version_check'
4
5
  end
5
6
  end
@@ -155,6 +155,10 @@ module PEBuild
155
155
 
156
156
 
157
157
  # internal action hooks
158
+ action_hook('PE Build: vagrant version check', :environment_load) do |hook|
159
+ require 'pe_build/action'
160
+ hook.prepend PEBuild::Action::VersionCheck
161
+ end
158
162
 
159
163
  action_hook('PE Build: initialize build dir') do |hook|
160
164
  require 'pe_build/action'
@@ -214,7 +214,7 @@ bash pe_frictionless_installer.sh
214
214
  shell_config.privileged = true
215
215
  # TODO: Extend paths to PE 3.x masters.
216
216
  shell_config.inline = <<-EOS
217
- /opt/puppetlabs/bin/puppet cert sign #{agent_certname}
217
+ /opt/puppetlabs/bin/puppet cert --allow-dns-alt-names sign #{agent_certname}
218
218
  EOS
219
219
  shell_config.finalize!
220
220
 
@@ -200,17 +200,32 @@ module PEBuild
200
200
 
201
201
  # PE versions prior to 2016.4.0 were signed with a GPG key that
202
202
  # expired on January 2nd, 2017.
203
- update_gpg = (PEBuild::Util::VersionString.compare(@config.version, '2016.4.0') < 0)
203
+ #
204
+ # Packages weren't signed with GPG keys prior to PE 2.7.0.
205
+ update_gpg = (PEBuild::Util::VersionString.compare(@config.version, '2016.4.0') < 0) &&
206
+ (PEBuild::Util::VersionString.compare(@config.version, '2.7.0') > 0)
204
207
 
205
208
  if update_gpg
209
+ key_path = if (PEBuild::Util::VersionString.compare(@config.version, '2016.2.0') >= 0)
210
+ "#{installer_path}/packages/GPG-KEY-puppetlabs"
211
+ elsif (PEBuild::Util::VersionString.compare(@config.version, '3.0.0') >= 0)
212
+ # PE 3.0.0 -- 2016.1.2
213
+ "#{installer_path}/gpg/GPG-KEY-puppetlabs"
214
+ else
215
+ # PE 2.7 and 2.8
216
+ "#{installer_path}/gpg/RPM-GPG-KEY-puppetlabs"
217
+ end
218
+
206
219
  machine.ui.info(
207
220
  I18n.t('pebuild.provisioner.pe_bootstrap.updating_gpg_key',
208
- :version => @config.version))
221
+ :version => @config.version,
222
+ :key_path => key_path))
223
+
209
224
  machine.communicate.upload(
210
225
  File.join(
211
226
  PEBuild.source_root,
212
227
  'data', 'vagrant-pe_build', 'files', 'GPG-KEY-puppetlabs'),
213
- "#{installer_path}/gpg/GPG-KEY-puppetlabs")
228
+ key_path)
214
229
  end
215
230
  end
216
231
 
@@ -30,4 +30,5 @@ module PEBuild::Release
30
30
  @releases['2016.4.1'] = twentysixteen_four_x
31
31
  @releases['2016.4.2'] = twentysixteen_four_x
32
32
  @releases['2016.4.3'] = twentysixteen_four_x
33
+ @releases['2016.4.4'] = twentysixteen_four_x
33
34
  end
@@ -0,0 +1,32 @@
1
+ require 'pe_build/release'
2
+
3
+ module PEBuild::Release
4
+
5
+ twentyseventeen_one_x = newrelease do
6
+
7
+ add_release :el, '6'
8
+ add_release :el, '7'
9
+
10
+ add_release :sles, '11'
11
+ add_release :sles, '12'
12
+
13
+ add_release :ubuntu, '12.04'
14
+ add_release :ubuntu, '14.04'
15
+ add_release :ubuntu, '16.04'
16
+
17
+ add_release :windows, '2008'
18
+ add_release :windows, '2008R2'
19
+ add_release :windows, '2012'
20
+ add_release :windows, '2012R2'
21
+ add_release :windows, '2016'
22
+ add_release :windows, '7'
23
+ add_release :windows, '8'
24
+ add_release :windows, '8.1'
25
+ add_release :windows, '10'
26
+
27
+ set_answer_file :master, File.join(PEBuild.template_dir, 'answers', 'master-2016.2.x.conf.erb')
28
+ end
29
+
30
+ @releases['2017.1.0'] = twentyseventeen_one_x
31
+ @releases['2017.1.1'] = twentyseventeen_one_x
32
+ end
@@ -0,0 +1,31 @@
1
+ require 'pe_build/release'
2
+
3
+ module PEBuild::Release
4
+
5
+ twentyseventeen_two_x = newrelease do
6
+
7
+ add_release :el, '6'
8
+ add_release :el, '7'
9
+
10
+ add_release :sles, '11'
11
+ add_release :sles, '12'
12
+
13
+ add_release :ubuntu, '12.04'
14
+ add_release :ubuntu, '14.04'
15
+ add_release :ubuntu, '16.04'
16
+
17
+ add_release :windows, '2008'
18
+ add_release :windows, '2008R2'
19
+ add_release :windows, '2012'
20
+ add_release :windows, '2012R2'
21
+ add_release :windows, '2016'
22
+ add_release :windows, '7'
23
+ add_release :windows, '8'
24
+ add_release :windows, '8.1'
25
+ add_release :windows, '10'
26
+
27
+ set_answer_file :master, File.join(PEBuild.template_dir, 'answers', 'master-2016.2.x.conf.erb')
28
+ end
29
+
30
+ @releases['2017.2.0'] = twentyseventeen_two_x
31
+ end
@@ -43,7 +43,9 @@ module PEBuild
43
43
  require 'pe_build/release/2016_2'
44
44
  require 'pe_build/release/2016_4'
45
45
  require 'pe_build/release/2016_5'
46
+ require 'pe_build/release/2017_1'
47
+ require 'pe_build/release/2017_2'
46
48
 
47
- LATEST_VERSION = '2016.5.2'
49
+ LATEST_VERSION = '2017.1.1'
48
50
  end
49
51
  end
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.17.2'
2
+ VERSION = '0.17.3'
3
3
  end
@@ -0,0 +1,25 @@
1
+ # Stock all-in-one answers for 2017.2.0 and newer
2
+ "console_admin_password": "puppetlabs"
3
+
4
+ "node_roles": {
5
+ # Primary Roles:
6
+ # (If you modify any of these roles, make sure to start by replacing
7
+ # "%{::trusted.certname}" with the real name of the primary master.)
8
+ "pe_role::monolithic::primary_master": ["<%= machine_hostname %>"]
9
+ "pe_role::monolithic::primary_master_replica": []
10
+
11
+ # Secondary Roles:
12
+ "pe_role::monolithic::compile_master": []
13
+ "pe_role::monolithic::mco_hub": []
14
+ "pe_role::monolithic::mco_broker": []
15
+ }
16
+
17
+ "agent_platforms": [
18
+ "%{::platform_tag}",
19
+ ]
20
+
21
+ "meep_schema_version": "2.0"
22
+
23
+ # Additional customization
24
+ "puppet_enterprise::profile::master::check_for_updates": false
25
+ "puppet_enterprise::send_analytics_data": false
@@ -1,5 +1,11 @@
1
1
  en:
2
2
  pebuild:
3
+ action:
4
+ version_check:
5
+ deprecated_vagrant_version: |-
6
+ The vagrant-pe_build plugin has deprecated support for Vagrant
7
+ versions older than %{minimum_version}. Support for version %{vagrant_version}
8
+ will be removed in the next major release of the plugin.
3
9
  command:
4
10
  facts:
5
11
  vm_not_running: |-
@@ -27,7 +33,8 @@ en:
27
33
  provisioner:
28
34
  pe_bootstrap:
29
35
  updating_gpg_key: |-
30
- Updating expired GPG key bundled with PE %{version} installer.
36
+ Updating expired GPG key bundled with PE %{version} installer:
37
+ %{key_path}
31
38
  post_install: |-
32
39
  Applying post-install configuration to Puppet Enterprise.
33
40
  already_installed: |-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-pe_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-18 00:00:00.000000000 Z
12
+ date: 2017-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-progressbar
@@ -102,6 +102,7 @@ files:
102
102
  - lib/pe_build.rb
103
103
  - lib/pe_build/action.rb
104
104
  - lib/pe_build/action/pe_build_dir.rb
105
+ - lib/pe_build/action/version_check.rb
105
106
  - lib/pe_build/archive.rb
106
107
  - lib/pe_build/archive_collection.rb
107
108
  - lib/pe_build/cap.rb
@@ -158,6 +159,8 @@ files:
158
159
  - lib/pe_build/release/2016_2.rb
159
160
  - lib/pe_build/release/2016_4.rb
160
161
  - lib/pe_build/release/2016_5.rb
162
+ - lib/pe_build/release/2017_1.rb
163
+ - lib/pe_build/release/2017_2.rb
161
164
  - lib/pe_build/release/2_0.rb
162
165
  - lib/pe_build/release/2_5.rb
163
166
  - lib/pe_build/release/2_6.rb
@@ -205,6 +208,7 @@ files:
205
208
  - templates/answers/master-2015.x.txt.erb
206
209
  - templates/answers/master-2016.2.x.conf.erb
207
210
  - templates/answers/master-3.x.txt.erb
211
+ - templates/answers/master-pe_next.conf.erb
208
212
  - templates/locales/en.yml
209
213
  - vagrant-pe_build.gemspec
210
214
  - vagrant-spec.config.example.rb