Showing with 2,060 additions and 1,642 deletions.
  1. +2 −0 .gitignore
  2. +42 −37 .pdkignore
  3. +1 −1 .puppet-lint.rc
  4. +8 −1 .rubocop.yml
  5. +5 −7 .sync.yml
  6. +45 −49 .travis.yml
  7. +6 −0 .vscode/extensions.json
  8. +11 −1 CHANGELOG.md
  9. +2 −0 CODEOWNERS
  10. +78 −78 Gemfile
  11. +16 −978 README.md
  12. +1,268 −0 REFERENCE.md
  13. +77 −76 Rakefile
  14. +64 −71 appveyor.yml
  15. +1 −1 lib/puppet/parser/functions/sqlserver_is_domain_or_local_user.rb
  16. +1 −1 lib/puppet/parser/functions/sqlserver_upcase.rb
  17. +5 −5 lib/puppet/parser/functions/sqlserver_validate_hash_uniq_values.rb
  18. +5 −7 lib/puppet/parser/functions/sqlserver_validate_instance_name.rb
  19. +1 −1 lib/puppet/parser/functions/sqlserver_validate_range.rb
  20. +1 −1 lib/puppet/parser/functions/sqlserver_validate_size.rb
  21. +1 −1 lib/puppet/property/sqlserver_login.rb
  22. +2 −0 lib/puppet/provider/sqlserver_features/mssql.rb
  23. +4 −3 lib/puppet/provider/sqlserver_instance/mssql.rb
  24. +1 −2 lib/puppet/provider/sqlserver_tsql/mssql.rb
  25. +6 −4 lib/puppet/type/sqlserver_features.rb
  26. +3 −2 lib/puppet/type/sqlserver_instance.rb
  27. +7 −1 lib/puppet/type/sqlserver_tsql.rb
  28. +10 −8 lib/puppet_x/sqlserver/features.rb
  29. +4 −4 lib/puppet_x/sqlserver/sql_connection.rb
  30. +5 −8 manifests/config.pp
  31. +58 −40 manifests/database.pp
  32. +18 −17 manifests/login.pp
  33. +12 −9 manifests/login/permissions.pp
  34. +16 −17 manifests/role.pp
  35. +12 −13 manifests/role/permissions.pp
  36. +16 −12 manifests/sp_configure.pp
  37. +18 −19 manifests/user.pp
  38. +11 −11 manifests/user/permissions.pp
  39. +52 −48 metadata.json
  40. +1 −1 spec/acceptance/sqlserver_instance_spec.rb
  41. +0 −1 spec/acceptance/sqlserver_role_spec.rb
  42. +17 −9 spec/acceptance/z_last_sqlserver_features_spec.rb
  43. +1 −1 spec/defines/sp_configure_spec.rb
  44. +2 −2 spec/functions/sqlserver_is_domain_user_spec.rb
  45. +19 −1 spec/spec_helper.rb
  46. +10 −1 spec/spec_helper_acceptance.rb
  47. +24 −4 spec/sql_testing_helpers.rb
  48. +12 −12 spec/unit/puppet/provider/sqlserver_features_spec.rb
  49. +12 −13 spec/unit/puppet/provider/sqlserver_instance_spec.rb
  50. +4 −4 spec/unit/puppet/provider/sqlserver_tsql_spec.rb
  51. +4 −4 spec/unit/puppet/sqlserver_spec_helper.rb
  52. +1 −1 spec/unit/puppet/type/sqlserver_features_spec.rb
  53. +2 −2 spec/unit/puppet/type/sqlserver_instance_spec.rb
  54. +1 −1 spec/unit/puppet_x/server_helper_spec.rb
  55. +31 −31 spec/unit/puppet_x/sql_connection_spec.rb
  56. +2 −2 templates/create/login/permission.sql.erb
  57. +6 −6 templates/create/role/permissions.sql.erb
  58. +5 −5 templates/create/user/permission.sql.erb
  59. +3 −3 templates/query/login/permission_exists.sql.erb
  60. +3 −2 templates/query/role/permission_exists.sql.erb
  61. +3 −2 templates/query/user/permission_exists.sql.erb
  62. +2 −0 templates/restart_service.ps1.erb
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
/convert_report.txt
/update_report.txt
.DS_Store
.envrc
/inventory.yaml
79 changes: 42 additions & 37 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
/appveyor.yml
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/Rakefile
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
.project
.envrc
/inventory.yaml
/appveyor.yml
/.fixtures.yml
/Gemfile
/.gitattributes
/.gitignore
/.gitlab-ci.yml
/.pdkignore
/Rakefile
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
2 changes: 1 addition & 1 deletion .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--relative
9 changes: 8 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
require: rubocop-rspec
require:
- rubocop-rspec
- rubocop-i18n
AllCops:
DisplayCopNames: true
TargetRubyVersion: '2.1'
Expand All @@ -12,6 +14,7 @@ AllCops:
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- spec/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
Expand All @@ -21,6 +24,10 @@ Bundler/DuplicatedGem:
Enabled: false
Bundler/OrderedGems:
Enabled: false
GetText/DecorateFunctionMessage:
Enabled: false
GetText/DecorateString:
Enabled: false
Layout/AccessModifierIndentation:
Enabled: false
Layout/AlignArray:
Expand Down
12 changes: 5 additions & 7 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
.gitignore:
required:
- ---.project

Gemfile:
required:
Expand All @@ -16,11 +19,6 @@ Gemfile:
- gem: puppet-blacksmith
version: '~> 3.4'

# For the moment don't do any rubocop checks.
.rubocop.yml:
include_todos: true
selected_profile: off

spec/default_facts.yml:
unmanaged: true

Expand All @@ -39,8 +37,8 @@ appveyor.yml:
#Rakefile:
# unmanaged: true

# spec/spec_helper.rb:
# mock_with: ':rspec'
spec/spec_helper.rb:
mock_with: ':rspec'

#---
# Gemfile:
Expand Down
94 changes: 45 additions & 49 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,45 @@
---
dist: trusty
language: ruby
cache: bundler
before_install:
- if [ $BUNDLER_VERSION ]; then
gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri;
fi
- bundle -v
- rm -f Gemfile.lock
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.5.1
env:
global:
- BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
matrix:
fast_finish: true
include:
-
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
-
env: CHECK=parallel_spec
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.4
-
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3
rvm: 2.1.9
branches:
only:
- master
- /^v\d/
notifications:
email: false
deploy:
provider: puppetforge
user: puppet
password:
secure: ""
on:
tags: true
all_branches: true
condition: "$DEPLOY_TO_FORGE = yes"
---
dist: xenial
language: ruby
cache: bundler
before_install:
- bundle -v
- rm -f Gemfile.lock
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.5.3
stages:
- static
- spec
- acceptance
-
if: tag =~ ^v\d
name: deploy
matrix:
fast_finish: true
include:
-
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
stage: static
-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.5
stage: spec
-
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.3
stage: spec
-
env: DEPLOY_TO_FORGE=yes
stage: deploy
branches:
only:
- master
- /^v\d/
notifications:
email: false
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"jpogran.puppet-vscode",
"rebornix.Ruby"
]
}
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [2.5.1] - 2019-09-18

## Fixed

- Add DQC to sqlserver_features feature attribute ([MODULES-8600](https://tickets.puppetlabs.com/browse/MODULES-8600))
- Fix sqlserver_instances fact fails when registry contains uninstalled instances ([MODULES-8439](https://tickets.puppetlabs.com/browse/MODULES-8439))
- Switch to using PowerShell `Restart-Service .. -Force` to restart the SQLServer service in `sqlserver::sp_configure` ([MODULES-6904](https://tickets.puppetlabs.com/browse/MODULES-6904))
- Fix ERB Template Errors ([MODULES-9912](https://tickets.puppetlabs.com/browse/MODULES-9912))

## [2.5.0] - 2019-03-26

## Added
Expand Down Expand Up @@ -233,7 +242,8 @@ attempts to reinstall an instance that already exists ([MODULES-6022](https://ti

Initial release.

[Unreleased]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/2.5.0..master
[Unreleased]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/v2.5.1..master
[2.5.1]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/2.5.0..v2.5.1
[2.5.0]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/2.4.0..2.5.0
[2.4.0]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/2.3.0..2.4.0
[2.3.0]: https://github.com/puppetlabs/puppetlabs-sqlserver/compare/2.2.0..2.3.0
Expand Down
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Setting ownership to the modules team
* @puppetlabs/modules
Loading