Skip to content

Commit

Permalink
Merge pull request #144 from skn-bvdh/patch-1
Browse files Browse the repository at this point in the history
mysql::db sql parameter changed to array
  • Loading branch information
ju5t authored Oct 24, 2022
2 parents c33a5f6 + d8b0942 commit bff32a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/backends/mysql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
password => $::powerdns::db_password,
host => $::powerdns::db_host,
grant => [ 'ALL' ],
sql => $::powerdns::mysql_schema_file,
sql => [ $::powerdns::mysql_schema_file ],
require => Package[$::powerdns::params::mysql_backend_package_name],
}
}
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/powerdns_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
it { is_expected.to contain_class('powerdns::backends::mysql') }
it { is_expected.to contain_package('pdns-backend-mysql').with('ensure' => 'installed') }
it { is_expected.to contain_mysql__db('powerdns').with('user' => 'foo', 'password' => 'bar', 'host' => '127.0.0.1') }
it { is_expected.to contain_mysql__db('powerdns').with_sql(mysql_schema_file) }
it { is_expected.to contain_mysql__db('powerdns').with_sql([ mysql_schema_file ]) }

# This sets our configuration
it { is_expected.to contain_powerdns__config('gmysql-host').with('value' => '127.0.0.1') }
Expand Down

0 comments on commit bff32a7

Please sign in to comment.