Skip to content

Commit 748e41a

Browse files
committed
Merge branch 'release-prep'
2 parents a1593b4 + 4416ead commit 748e41a

13 files changed

+69
-37
lines changed

Diff for: .gitlab-ci.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,25 @@ cache:
1010
before_script:
1111
- bundle -v
1212
- rm Gemfile.lock || true
13-
- gem update --system $RUBYGEMS_VERSION
13+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
14+
- "# Set `rubygems_version` in the .sync.yml to set a value"
15+
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
16+
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
1417
- gem --version
1518
- bundle -v
1619
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
1720

18-
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.3-Puppet ~> 6:
21+
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.7-Puppet ~> 6:
1922
stage: syntax
20-
image: ruby:2.5.3
23+
image: ruby:2.5.7
2124
script:
2225
- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
2326
variables:
2427
PUPPET_GEM_VERSION: '~> 6'
2528

26-
parallel_spec-Ruby 2.5.3-Puppet ~> 6:
29+
parallel_spec-Ruby 2.5.7-Puppet ~> 6:
2730
stage: unit
28-
image: ruby:2.5.3
31+
image: ruby:2.5.7
2932
script:
3033
- bundle exec rake parallel_spec
3134
variables:

Diff for: .rubocop.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require:
44
- rubocop-i18n
55
AllCops:
66
DisplayCopNames: true
7-
TargetRubyVersion: '2.4'
7+
TargetRubyVersion: '2.1'
88
Include:
99
- "./**/*.rb"
1010
Exclude:
@@ -27,6 +27,7 @@ GetText/DecorateString:
2727
Description: We don't want to decorate test output.
2828
Exclude:
2929
- spec/**/*
30+
Enabled: false
3031
RSpec/BeforeAfterAll:
3132
Description: Beware of using after(:all) as it may cause state to leak between tests.
3233
A necessary evil in acceptance testing.
@@ -39,6 +40,10 @@ Style/BlockDelimiters:
3940
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
4041
be consistent then.
4142
EnforcedStyle: braces_for_chaining
43+
Style/BracesAroundHashParameters:
44+
Description: Braces are required by Ruby 2.7. Cop removed from RuboCop v0.80.0.
45+
See https://github.com/rubocop-hq/rubocop/pull/7643
46+
Enabled: true
4247
Style/ClassAndModuleChildren:
4348
Description: Compact style reduces the required amount of indentation.
4449
EnforcedStyle: compact
@@ -67,7 +72,7 @@ Style/TrailingCommaInArguments:
6772
Description: Prefer always trailing comma on multiline argument lists. This makes
6873
diffs, and re-ordering nicer.
6974
EnforcedStyleForMultiline: comma
70-
Style/TrailingCommaInArrayLiteral:
75+
Style/TrailingCommaInLiteral:
7176
Description: Prefer always trailing comma on multiline literals. This makes diffs,
7277
and re-ordering nicer.
7378
EnforcedStyleForMultiline: comma
@@ -88,9 +93,15 @@ Style/MethodCalledOnDoEndBlock:
8893
Enabled: true
8994
Style/StringMethods:
9095
Enabled: true
96+
GetText/DecorateFunctionMessage:
97+
Enabled: false
98+
GetText/DecorateStringFormattingUsingInterpolation:
99+
Enabled: false
100+
GetText/DecorateStringFormattingUsingPercent:
101+
Enabled: false
91102
Layout/EndOfLine:
92103
Enabled: false
93-
Layout/HeredocIndentation:
104+
Layout/IndentHeredoc:
94105
Enabled: false
95106
Metrics/AbcSize:
96107
Enabled: false

Diff for: .sync.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
---
22
Gemfile:
3-
':development':
4-
required:
5-
- gem: 'puppet-debugger'
6-
version: '>= 0.18.0'
3+
required:
4+
':development':
5+
- gem: 'puppet-debugger'
6+
version: '>= 0.18.0'
7+
optional:
8+
':development':
9+
- gem: 'github_changelog_generator'
10+
git: 'https://github.com/skywinder/github-changelog-generator'
11+
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
12+
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
713
Rakefile:
14+
changelog_since_tag: '2.1.0'
815
extras:
916
- 'PuppetSyntax.exclude_paths = ["plans/**/*.pp", "vendor/**/*"]'
1017
.gitignore:
1118
paths:
1219
- '.rerun.json'
1320
- '*.tar.gz'
14-

Diff for: .travis.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
---
2+
os: linux
23
dist: xenial
34
language: ruby
45
cache: bundler
56
before_install:
67
- bundle -v
78
- rm -f Gemfile.lock
8-
- gem update --system $RUBYGEMS_VERSION
9+
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner"
10+
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used"
11+
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set"
12+
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION'
913
- gem --version
1014
- bundle -v
1115
script:
1216
- 'bundle exec rake $CHECK'
1317
bundler_args: --without system_tests
1418
rvm:
15-
- 2.5.3
19+
- 2.5.7
1620
stages:
1721
- static
1822
- spec
1923
- acceptance
2024
-
2125
if: tag =~ ^v\d
2226
name: deploy
23-
matrix:
27+
jobs:
2428
fast_finish: true
2529
include:
2630
-
@@ -32,7 +36,7 @@ matrix:
3236
stage: spec
3337
-
3438
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
35-
rvm: 2.5.3
39+
rvm: 2.5.7
3640
stage: spec
3741
-
3842
env: DEPLOY_TO_FORGE=yes

Diff for: CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
## Unreleased
1+
## Release 2.1.0
22
### Summary
33

4+
Support upgrades from PE 2018.1 to 2019.7.
5+
46
### Features
57

6-
### Bugfixes
8+
- Support added for upgrading from PE 2018.1 to 2019.7
79

810
## Release 2.0.0
911
### Summary

Diff for: Gemfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
1717
minor_version = ruby_version_segments[0..1].join('.')
1818

1919
group :development do
20-
gem 'puppet-debugger', '0.18.0'
2120
gem "fast_gettext", '1.1.0', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
2221
gem "fast_gettext", require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
2322
gem "json_pure", '<= 2.0.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
2423
gem "json", '= 1.8.1', require: false if Gem::Version.new(RUBY_VERSION.dup) == Gem::Version.new('2.1.9')
2524
gem "json", '= 2.0.4', require: false if Gem::Requirement.create('~> 2.4.2').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2625
gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2726
gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw]
28-
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
29-
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
30-
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
31-
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
27+
gem "puppet-module-posix-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
28+
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:ruby]
29+
gem "puppet-module-win-default-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
30+
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.4', require: false, platforms: [:mswin, :mingw, :x64_mingw]
31+
gem "puppet-debugger", '>= 0.18.0', require: false
32+
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
3233
end
3334

3435
puppet_version = ENV['PUPPET_GEM_VERSION']

Diff for: Rakefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
24
require 'puppetlabs_spec_helper/rake_tasks'
35
require 'puppet-syntax/tasks/puppet-syntax'
@@ -45,6 +47,7 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
4547
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
4648
config.user = "#{changelog_user}"
4749
config.project = "#{changelog_project}"
50+
config.since_tag = "2.1.0"
4851
config.future_release = "#{changelog_future_release}"
4952
config.exclude_labels = ['maintenance']
5053
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."

Diff for: metadata.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "puppetlabs-peadm",
3-
"version": "2.0.0",
4-
"author": "Puppet Labs Solutions Architecture",
3+
"version": "2.1.0",
4+
"author": "puppetlabs",
55
"summary": "Bolt plans used to deploy an at-scale Puppet Enterprise architecture",
66
"license": "Apache-2.0",
77
"source": "https://github.com/puppetlabs/puppetlabs-peadm",
@@ -58,7 +58,7 @@
5858
"version_requirement": ">= 6.0.2 < 7.0.0"
5959
}
6060
],
61-
"pdk-version": "1.17.0",
62-
"template-url": "https://github.com/puppetlabs/pdk-templates.git#1.13.0",
63-
"template-ref": "tags/1.13.0-0-g66e1443"
61+
"pdk-version": "1.18.0",
62+
"template-url": "https://github.com/puppetlabs/pdk-templates.git#1.18.0",
63+
"template-ref": "tags/1.18.0-0-g095317c"
6464
}

Diff for: spec/default_facts.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
# Facts specified here will override the values provided by rspec-puppet-facts.
44
---
55
ipaddress: "172.16.254.254"
6+
ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
67
is_pe: false
78
macaddress: "AA:AA:AA:AA:AA:AA"

Diff for: spec/functions/generate_pe_conf_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
JSON.pretty_generate('console_admin_password' => 'puppetlabs',
1111
'puppet_enterprise::profile::console::java_args' => {
1212
'Xms' => '256m',
13-
'Xmx' => '768m'
13+
'Xmx' => '768m',
1414
},
1515
'puppet_enterprise::profile::master::java_args' => {
1616
'Xms' => '512m',
17-
'Xmx' => '2048m'
17+
'Xmx' => '2048m',
1818
},
1919
'puppet_enterprise::profile::orchestrator::java_args' => {
2020
'Xms' => '256m',
21-
'Xmx' => '768m'
21+
'Xmx' => '768m',
2222
},
2323
'puppet_enterprise::profile::puppetdb::java_args' => {
2424
'Xms' => '256m',
25-
'Xmx' => '768m'
25+
'Xmx' => '768m',
2626
})
2727
end
2828

Diff for: spec/spec_helper.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
default_facts = {
1111
puppetversion: Puppet.version,
12-
facterversion: Facter.version
12+
facterversion: Facter.version,
1313
}
1414

1515
default_fact_files = [
1616
File.expand_path(File.join(File.dirname(__FILE__), 'default_facts.yml')),
17-
File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml'))
17+
File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml')),
1818
]
1919

2020
default_fact_files.each do |f|
@@ -38,6 +38,7 @@
3838
# set to strictest setting for testing
3939
# by default Puppet runs at warning level
4040
Puppet.settings[:strict] = :warning
41+
Puppet.settings[:strict_variables] = true
4142
end
4243
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
4344
c.after(:suite) do

Diff for: tasks/rbac_token.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'login' => 'admin',
1919
'password' => $params['password'],
2020
'lifetime' => '1y',
21-
'label' => 'provision-time token'
21+
'label' => 'provision-time token',
2222
}.to_json
2323

2424
http = Net::HTTP.new(uri.host, uri.port)

Diff for: tasks/trusted_facts.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
result = {
3737
'certname' => certname,
3838
'dns-alt-names' => alt_names,
39-
'extensions' => extensions
39+
'extensions' => extensions,
4040
}
4141

4242
puts result.to_json

0 commit comments

Comments
 (0)