Showing with 20 additions and 14 deletions.
  1. +3 −2 .github/workflows/ci.yml
  2. +1 −1 .github/workflows/labeller.yml
  3. +11 −0 CHANGELOG.md
  4. +2 −5 manifests/login.pp
  5. +2 −5 manifests/user.pp
  6. +1 −1 metadata.json
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: "ci"

on:
pull_request_target:
types: [opened, synchronize, reopened]
pull_request:
branches:
- "main"
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- opened
- labeled
- unlabeled
pull_request_target:
pull_request:
types:
- opened
- labeled
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All 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).

## [v5.0.2](https://github.com/puppetlabs/puppetlabs-sqlserver/tree/v5.0.2) - 2024-07-18

[Full Changelog](https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v5.0.1...v5.0.2)

### Fixed

- (CAT-1939) Reverting deferred function changes [#477](https://github.com/puppetlabs/puppetlabs-sqlserver/pull/477) ([Ramesh7](https://github.com/Ramesh7))

## [v5.0.1](https://github.com/puppetlabs/puppetlabs-sqlserver/tree/v5.0.1) - 2024-02-22

[Full Changelog](https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v5.0.0...v5.0.1)
Expand All @@ -18,6 +26,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
[Full Changelog](https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v4.1.0...v5.0.0)

### Changed

- [CAT-1065] : Removing support for SQL Server 2012 [#455](https://github.com/puppetlabs/puppetlabs-sqlserver/pull/455) ([rajat-puppet](https://github.com/rajat-puppet))

### Added
Expand All @@ -43,6 +52,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
[Full Changelog](https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v3.3.0...v4.0.0)

### Changed

- (CONT-800) - Add Puppet 8/Drop Puppet 6 [#430](https://github.com/puppetlabs/puppetlabs-sqlserver/pull/430) ([jordanbreen28](https://github.com/jordanbreen28))

## [v3.3.0](https://github.com/puppetlabs/puppetlabs-sqlserver/tree/v3.3.0) - 2023-03-07
Expand Down Expand Up @@ -91,6 +101,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
[Full Changelog](https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v2.6.2...v3.0.0)

### Changed

- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 [#369](https://github.com/puppetlabs/puppetlabs-sqlserver/pull/369) ([carabasdaniel](https://github.com/carabasdaniel))

### Added
Expand Down
7 changes: 2 additions & 5 deletions manifests/login.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@
$create_delete_login_parameters = {
'disabled' => $disabled,
'login' => $login,
'password' => $password ? {
undef => undef,
default => Deferred('sprintf', [$password]),
},
'password' => $password,
'check_expiration' => $check_expiration,
'check_policy' => $check_policy,
'default_language' => $default_language,
Expand Down Expand Up @@ -111,7 +108,7 @@

sqlserver_tsql { "login-${instance}-${login}":
instance => $instance,
command => stdlib::deferrable_epp("sqlserver/${_create_delete}/login.sql.epp", $create_delete_login_parameters),
command => epp("sqlserver/${_create_delete}/login.sql.epp", $create_delete_login_parameters),
onlyif => epp('sqlserver/query/login_exists.sql.epp', $query_login_exists_parameters),
require => Sqlserver::Config[$instance],
}
Expand Down
7 changes: 2 additions & 5 deletions manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@
if $create_delete == 'create' {
$create_delete_user_parameters = {
'database' => $database,
'password' => $password ? {
undef => undef,
default => Deferred('sprintf', [$password]),
},
'password' => $password,
'user' => $user,
'login' => $login,
'default_schema' => $default_schema,
Expand All @@ -88,7 +85,7 @@

sqlserver_tsql { "user-${instance}-${database}-${user}":
instance => $instance,
command => stdlib::deferrable_epp("sqlserver/${create_delete}/user.sql.epp", $create_delete_user_parameters),
command => epp("sqlserver/${create_delete}/user.sql.epp", $create_delete_user_parameters),
onlyif => epp('sqlserver/query/user_exists.sql.epp', $query_user_exists_parameters),
require => Sqlserver::Config[$instance],
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-sqlserver",
"version": "5.0.1",
"version": "5.0.2",
"author": "puppetlabs",
"summary": "The `sqlserver` module installs and manages MS SQL Server 2014, 2016, 2017, 2019 and 2022 on Windows systems.",
"license": "proprietary",
Expand Down