Skip to content

Commit a593a20

Browse files
authored
Merge pull request #2234 from puppetlabs/pdksync_maint/pdk_update_20-04
pdksync - (Maint) PDK Update
2 parents 43d4b06 + a1c595e commit a593a20

File tree

10 files changed

+43
-15
lines changed

10 files changed

+43
-15
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,5 @@ jobs:
200200
repo_token: ${{ secrets.GITHUB_TOKEN }}
201201
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }}
202202
# Optional Input
203-
channel: '#team-ia-bots'
203+
channel: '#team-cat-bots'
204204
name: 'GABot'

.github/workflows/spec.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
5555
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
5656
echo STEP_START=$(date +%s) >> $GITHUB_ENV
57-
# - name: Run Static & Syntax Tests
58-
# if: ${{ github.repository_owner == 'puppetlabs' }}
59-
# run: |
60-
# buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
57+
- name: Run Static & Syntax Tests
58+
if: ${{ github.repository_owner == 'puppetlabs' }}
59+
run: |
60+
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
6161
6262
- name: Setup Spec Test Matrix
6363
id: get-matrix

.puppet-lint.rc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
--relative
2+
--no-parameter_types-check
3+
--no-parameter_documentation-check
4+
--no-top_scope_facts-check
5+
--no-legacy_facts-check
6+
--no-relative_classname_reference-check
7+
--no-relative_classname_inclusion-check
8+
--no-anchor_resource-check
9+
--no-version_comparison-check
10+
--no-manifest_whitespace_closing_bracket_after-check

.sync.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@ Rakefile:
3535
.travis.yml:
3636
delete: true
3737
changelog_since_tag: "3.2.0"
38+
Rakefile:
39+
extra_disabled_lint_checks:
40+
- parameter_types
41+
- parameter_documentation
42+
- top_scope_facts
43+
- legacy_facts
44+
- relative_classname_reference
45+
- relative_classname_inclusion
46+
- anchor_resource
47+
- version_comparison
48+
- manifest_whitespace_closing_bracket_after
49+

Rakefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ def changelog_future_release
4242
end
4343

4444
PuppetLint.configuration.send('disable_relative')
45+
PuppetLint.configuration.send('disable_parameter_types')
46+
PuppetLint.configuration.send('disable_parameter_documentation')
47+
PuppetLint.configuration.send('disable_top_scope_facts')
48+
PuppetLint.configuration.send('disable_legacy_facts')
49+
PuppetLint.configuration.send('disable_relative_classname_reference')
50+
PuppetLint.configuration.send('disable_relative_classname_inclusion')
51+
PuppetLint.configuration.send('disable_anchor_resource')
52+
PuppetLint.configuration.send('disable_version_comparison')
53+
PuppetLint.configuration.send('disable_manifest_whitespace_closing_bracket_after')
4554

4655

4756
if Bundler.rubygems.find_name('github_changelog_generator').any?
@@ -50,7 +59,6 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
5059
config.user = "#{changelog_user}"
5160
config.project = "#{changelog_project}"
5261
config.since_tag = "3.2.0"
53-
config.max_issues = 500
5462
config.future_release = "#{changelog_future_release}"
5563
config.exclude_labels = ['maintenance']
5664
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)."
@@ -89,4 +97,3 @@ EOM
8997
end
9098
end
9199

92-
FastGettext.default_text_domain = 'default-text-domain'

manifests/mod/ldap.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
$apache_version = undef,
5353
$package_name = undef,
5454
$ldap_trusted_global_cert_file = undef,
55-
Optional[String] $ldap_trusted_global_cert_type = 'CA_BASE64',
55+
String $ldap_trusted_global_cert_type = 'CA_BASE64',
5656
$ldap_shared_cache_size = undef,
5757
$ldap_cache_entries = undef,
5858
$ldap_cache_ttl = undef,

manifests/mod/security.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220

221221
if $custom_rules {
222222
# Template to add custom rule and included in security configuration
223-
file {"${modsec_dir}/custom_rules":
223+
file { "${modsec_dir}/custom_rules":
224224
ensure => directory,
225225
owner => $apache::params::user,
226226
group => $apache::params::group,

manifests/vhost.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,8 +1835,8 @@
18351835
$access_log_format = false,
18361836
$access_log_env_var = false,
18371837
Optional[Array] $access_logs = undef,
1838-
Optional[Boolean] $use_servername_for_filenames = false,
1839-
Optional[Boolean] $use_port_for_filenames = false,
1838+
Boolean $use_servername_for_filenames = false,
1839+
Boolean $use_port_for_filenames = false,
18401840
$aliases = undef,
18411841
Optional[Variant[Hash, Array[Variant[Array,Hash]]]] $directories = undef,
18421842
Boolean $error_log = true,

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
}
9090
],
9191
"description": "Module for Apache configuration",
92-
"pdk-version": "2.3.0",
92+
"pdk-version": "2.4.0",
9393
"template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
94-
"template-ref": "heads/main-0-gf3911d3"
94+
"template-ref": "heads/main-0-g806810b"
9595
}

spec/acceptance/vhost_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ class { 'apache': }
965965
}
966966
MANIFEST
967967
it 'applies cleanly' do
968-
result = apply_manifest(pp, catch_failures: true)
968+
_result = apply_manifest(pp, catch_failures: true)
969969
end
970970
describe file("#{apache_hash['vhost_dir']}/25-test.servername.conf") do
971971
it { is_expected.to be_file }
@@ -984,7 +984,7 @@ class { 'apache': }
984984
}
985985
MANIFEST
986986
it 'applies cleanly' do
987-
result = apply_manifest(pp, catch_failures: true)
987+
_result = apply_manifest(pp, catch_failures: true)
988988
end
989989
describe file("#{apache_hash['vhost_dir']}/25-test.server.conf") do
990990
it { is_expected.to be_file }

0 commit comments

Comments
 (0)