Skip to content

Commit a6682d7

Browse files
authored
Merge pull request #1467 from puppetlabs/pdksync_maint/pdk_update_20-04
pdksync - (Maint) PDK Update
2 parents 9f544a7 + 8095cce commit a6682d7

File tree

11 files changed

+39
-22
lines changed

11 files changed

+39
-22
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
--relative
2+
--no-parameter_types-check
3+
--no-parameter_documentation-check
4+
--no-legacy_facts-check
5+
--no-top_scope_facts-check
6+
--no-anchor_resource-check
7+
--no-relative_classname_reference-check
8+
--no-params_empty_string_assignment-check

.sync.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ Rakefile:
4141
.travis.yml:
4242
delete: true
4343
changelog_since_tag: 'v11.0.3'
44+
Rakefile:
45+
extra_disabled_lint_checks:
46+
- parameter_types
47+
- parameter_documentation
48+
- legacy_facts
49+
- top_scope_facts
50+
- anchor_resource
51+
- relative_classname_reference
52+
- params_empty_string_assignment

Rakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ 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_legacy_facts')
48+
PuppetLint.configuration.send('disable_top_scope_facts')
49+
PuppetLint.configuration.send('disable_anchor_resource')
50+
PuppetLint.configuration.send('disable_relative_classname_reference')
51+
PuppetLint.configuration.send('disable_params_empty_string_assignment')
4552

4653

4754
if Bundler.rubygems.find_name('github_changelog_generator').any?
@@ -50,7 +57,6 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
5057
config.user = "#{changelog_user}"
5158
config.project = "#{changelog_project}"
5259
config.since_tag = "v11.0.3"
53-
config.max_issues = 500
5460
config.future_release = "#{changelog_future_release}"
5561
config.exclude_labels = ['maintenance']
5662
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)."

lib/facter/mysql_server_id.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ def mysql_id_get
1515

1616
Facter.add('mysql_server_id') do
1717
setcode do
18-
begin
19-
mysql_id_get
20-
rescue
21-
nil
22-
end
18+
mysql_id_get
19+
rescue
20+
nil
2321
end
2422
end

lib/puppet/provider/mysql_grant/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def self.instances
6969
sorted_privileges = ['ALL']
7070

7171
# Currently there is an issue with the behaviour of the module which was highlighted by the 'complex test' test case in 'mysql_grant_spec'. The module, upon retrieving all privileges from an
72-
# user, does not take into account that the latest version of mysql now includes dynamic privileges which are returned alongside the original static privileges and are set by 'ALL PRIVILEGES'
72+
# user, does not take into account that the latest version of mysql now includes dynamic privileges which are returned alongside the original static privileges and are set by 'ALL PRIVILEGES'
7373
# (shortened to 'ALL'). This is a workaround to remove the unnecesary privileges from the sorted_privileges list which is used to check for idempotency in test cases.
7474
elsif sorted_privileges == ['ALL', 'APPLICATION_PASSWORD_ADMIN', 'AUDIT_ABORT_EXEMPT', 'AUDIT_ADMIN', 'AUTHENTICATION_POLICY_ADMIN', 'BACKUP_ADMIN', 'BINLOG_ADMIN', 'BINLOG_ENCRYPTION_ADMIN',
7575
'CLONE_ADMIN', 'CONNECTION_ADMIN', 'ENCRYPTION_KEY_ADMIN', 'FLUSH_OPTIMIZER_COSTS', 'FLUSH_STATUS', 'FLUSH_TABLES', 'FLUSH_USER_RESOURCES',

manifests/backup/mysqlbackup.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
'incremental_base' => 'history:last_backup',
108108
'incremental_backup_dir' => $backupdir,
109109
'user' => $backupuser,
110-
'password' => $backuppassword_unsensitive
110+
'password' => $backuppassword_unsensitive,
111111
},
112112
}
113113
$options = mysql::normalise_and_deepmerge($default_options, $mysql::server::override_options)

manifests/bindings.pp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,11 @@
102102
) inherits mysql::params {
103103
case $::osfamily {
104104
'Archlinux': {
105-
if $java_enable { fail("::mysql::bindings::java cannot be managed by puppet on ${::facts['os']['family']}
106-
as it is not in official repositories. Please disable java mysql binding.") }
105+
if $java_enable { fail("::mysql::bindings::java cannot be managed by puppet on ${::facts['os']['family']} as it is not in official repositories. Please disable java mysql binding.") }
107106
if $perl_enable { include 'mysql::bindings::perl' }
108-
if $php_enable { warning("::mysql::bindings::php does not need to be managed by puppet on ${::facts['os']['family']}
109-
as it is included in mysql package by default.") }
107+
if $php_enable { warning("::mysql::bindings::php does not need to be managed by puppet on ${::facts['os']['family']} as it is included in mysql package by default.") }
110108
if $python_enable { include 'mysql::bindings::python' }
111-
if $ruby_enable { fail("::mysql::bindings::ruby cannot be managed by puppet on %{::facts['os']['family']}
112-
as it is not in official repositories. Please disable ruby mysql binding.") }
109+
if $ruby_enable { fail("::mysql::bindings::ruby cannot be managed by puppet on ${::facts['os']['family']} as it is not in official repositories. Please disable ruby mysql binding.") }
113110
}
114111

115112
default: {

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
$xtrabackup_package_name_override = 'percona-xtrabackup-24'
228228
}
229229
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '20.04') >= 0) or
230-
($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '11') >= 0){
230+
($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '11') >= 0) {
231231
$python_package_name = 'python3-mysqldb'
232232
} else {
233233
$python_package_name = 'python-mysqldb'

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@
8686
],
8787
"description": "MySQL module",
8888
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
89-
"template-ref": "heads/main-0-gf3911d3",
90-
"pdk-version": "2.3.0"
89+
"template-ref": "heads/main-0-g806810b",
90+
"pdk-version": "2.4.0"
9191
}

0 commit comments

Comments
 (0)