Skip to content

Commit a1143b7

Browse files
authored
Merge pull request #648 from puppetlabs/maint-add_hostname_to_sync.yml
(maint) - add hostname to sync.yml
2 parents 400afeb + 54d0a64 commit a1143b7

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/log/
1717
/pkg/
1818
/spec/fixtures/manifests/
19-
/spec/fixtures/modules/
19+
/spec/fixtures/modules/*
2020
/tmp/
2121
/vendor/
2222
/convert_report.txt

.pdkignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/log/
1717
/pkg/
1818
/spec/fixtures/manifests/
19-
/spec/fixtures/modules/
19+
/spec/fixtures/modules/*
2020
/tmp/
2121
/vendor/
2222
/convert_report.txt

.sync.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ Rakefile:
2525
end
2626
extra_disabled_lint_checks:
2727
- params_empty_string_assignment
28-
29-
.rubocop.yml:
30-
include_todos:
31-
inherit_from: '.rubocop_todo.yml'
3228
profiles:
3329
strict:
3430
configs:
@@ -41,7 +37,10 @@ Rakefile:
4137
- rakelib/*
4238
- plans/*.pp
4339
- tasks/*
44-
40+
spec/default_facts.yml:
41+
extra_facts:
42+
networking:
43+
hostname: "kubernetes.localhost"
4544
spec/spec_helper.rb:
4645
mock_with: ':rspec'
4746
coverage_report: true

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ group :development do
1919
gem "json", '= 2.5.1', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2020
gem "json", '= 2.6.1', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2121
gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.2.0', '< 4.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
22+
gem "racc", '~> 1.4.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2223
gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false
2324
gem "facterdb", '~> 1.18', require: false
2425
gem "metadata-json-lint", '~> 3.0', require: false

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# frozen_string_literal: true
22

33
require 'bundler'
4-
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
4+
require 'puppet_litmus/rake_tasks' if Gem.loaded_specs.key? 'puppet_litmus'
55
require 'puppetlabs_spec_helper/rake_tasks'
66
require 'puppet-syntax/tasks/puppet-syntax'
7-
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
8-
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
7+
require 'github_changelog_generator/task' if Gem.loaded_specs.key? 'github_changelog_generator'
8+
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
99

1010
def changelog_user
1111
return unless Rake.application.top_level_tasks.include? "changelog"
@@ -44,7 +44,7 @@ PuppetLint.configuration.send('disable_relative')
4444
PuppetLint.configuration.send('disable_params_empty_string_assignment')
4545

4646

47-
if Bundler.rubygems.find_name('github_changelog_generator').any?
47+
if Gem.loaded_specs.key? 'github_changelog_generator'
4848
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
4949
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?
5050
config.user = "#{changelog_user}"

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"version_requirement": ">= 7.0.0 < 9.0.0"
6969
}
7070
],
71-
"pdk-version": "2.7.1",
71+
"pdk-version": "3.0.0",
7272
"template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
73-
"template-ref": "heads/main-0-gab2bd48"
73+
"template-ref": "heads/main-0-g9b627e8"
7474
}

spec/default_facts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ networking:
66
ip: "172.16.254.254"
77
ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
88
mac: "AA:AA:AA:AA:AA:AA"
9-
hostname: 'kubernetes.localhost'
9+
hostname: "kubernetes.localhost"
1010
is_pe: false

0 commit comments

Comments
 (0)