Skip to content

Commit 019f8f0

Browse files
authored
Merge branch 'main' into backup-fix-excluded-dbs
2 parents 45a2a45 + 7e46636 commit 019f8f0

File tree

10 files changed

+27
-20
lines changed

10 files changed

+27
-20
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup Acceptance Test Matrix
4040
id: get-matrix
4141
run: |
42-
bundle exec matrix_from_metadata_v2
42+
bundle exec matrix_from_metadata_v2 --exclude-platforms '["Ubuntu-22.04-arm", "RedHat-9-arm"]'
4343
4444
Acceptance:
4545
name: "${{matrix.platforms.label}}, ${{matrix.collection}}"

Diff for: .github/workflows/labeller.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- opened
77
- labeled
88
- unlabeled
9-
pull_request_target:
9+
pull_request:
1010
types:
1111
- opened
1212
- labeled

Diff for: .github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Acceptance Test Matrix
3939
id: get-matrix
4040
run: |
41-
bundle exec matrix_from_metadata_v2
41+
bundle exec matrix_from_metadata_v2 --exclude-platforms '["Ubuntu-22.04-arm", "RedHat-9-arm"]'
4242
4343
Acceptance:
4444
name: "${{matrix.platforms.label}}, ${{matrix.collection}}"

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ The MySQL module has an example task that allows a user to execute arbitary SQL
659659

660660
## Limitations
661661

662-
For an extensive list of supported operating systems, see [metadata.json](https://github.com/puppetlabs/puppetlabs-mysql/blob/main/metadata.json)
662+
This module lacks compatibility with the ARM architecture, for an extensive list of supported operating systems, see [metadata.json](https://github.com/puppetlabs/puppetlabs-mysql/blob/main/metadata.json)
663663

664664
**Note:** The mysqlbackup.sh does not work and is not supported on MySQL 5.7 and greater.
665665

Diff for: lib/puppet/functions/mysql/innobackupex_args.rb

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
# frozen_string_literal: true
22

3-
# @summary this function populates and returns the string of arguments which later gets injected in template.
4-
# arguments that return string holds is conditional and decided by the the input given to function.
5-
3+
# @summary
4+
# This function populates and returns the string of arguments which later gets injected in template. Arguments that return string holds is conditional and decided by the the input given to function.
5+
#
66
Puppet::Functions.create_function(:'mysql::innobackupex_args') do
7-
# @param args
8-
# String backupuser
9-
# Boolean backupcompress
10-
# String backuppassword_unsensitive
11-
# Array backupdatabases
12-
# Array optional_args
7+
# @param backupuser
8+
# The user to use for the backup.
9+
# @param backupcompress
10+
# If the backup should be compressed.
11+
# @param backuppassword_unsensitive
12+
# The password to use for the backup.
13+
# @param backupdatabases
14+
# The databases to backup.
15+
# @param optional_args
16+
# Additional arguments to pass to innobackupex.
1317
#
1418
# @return String
1519
# Generated on the basis of provided values.

Diff for: lib/puppet/functions/mysql/password.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def password(password, sensitive = false)
2323
password = password.unwrap if password.is_a?(Puppet::Pops::Types::PSensitiveType::Sensitive)
2424

25-
result_string = if %r{\*[A-F0-9]{40}$}.match?(password)
25+
result_string = if %r{^\*[A-F0-9]{40}$}.match?(password)
2626
password
2727
elsif password.empty?
2828
''

Diff for: manifests/db.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
Variant[String, Sensitive[String]] $password,
5252
Optional[Array[String[1]]] $tls_options = undef,
5353
String $dbname = $name,
54-
String[1] $charset = 'utf8',
55-
String[1] $collate = 'utf8_general_ci',
54+
String[1] $charset = 'utf8mb3',
55+
String[1] $collate = 'utf8mb3_general_ci',
5656
String[1] $host = 'localhost',
5757
Variant[String[1], Array[String[1]]] $grant = 'ALL',
5858
Optional[Variant[String[1], Array[String[1]]]] $grant_options = undef,

Diff for: manifests/params.pp

-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@
435435
'basedir' => $mysql::params::basedir,
436436
'bind-address' => '127.0.0.1',
437437
'datadir' => $mysql::params::datadir,
438-
'expire_logs_days' => '10',
439438
'key_buffer_size' => '16M',
440439
'log-error' => $mysql::params::log_error,
441440
'max_allowed_packet' => '16M',

Diff for: spec/acceptance/00_mysql_server_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class { '::mysql::server':
6363
end
6464

6565
it 'can be set' do
66-
apply_manifest(pp, catch_failures: true) do |r|
67-
expect(r.stderr).to be_empty
68-
end
66+
# TODO : Returning warning message while running above manifest
67+
# Warning: Facter: Container runtime, 'docker', is unsupported, setting to, 'container_other'
68+
apply_manifest(pp)
6969
end
7070
end
7171
end

Diff for: spec/functions/mysql_password_spec.rb

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
expect(subject).to run.with_params('').and_return('')
3737
end
3838

39+
it 'converts the password when its given in caps with * sign' do
40+
expect(subject).to run.with_params('AFDJKFD1*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29').and_return('*91FF6DD4E1FC57D2EFC57F49552D0596F7D46BAF')
41+
end
42+
3943
it 'does not convert a password that is already a hash' do
4044
expect(subject).to run.with_params('*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19').and_return('*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19')
4145
end

0 commit comments

Comments
 (0)