Showing with 3,042 additions and 48 deletions.
  1. +5 −0 .fixtures.yml
  2. +7 −0 .gitignore
  3. +14 −0 .travis.yml
  4. +2 −0 CHANGELOG.md
  5. +23 −0 Gemfile
  6. +6 −0 LICENSE
  7. +215 −48 README.md
  8. +18 −0 Rakefile
  9. +23 −0 examples/database_full.pp
  10. +32 −0 examples/init.pp
  11. +15 −0 examples/sp_configure.pp
  12. +10 −0 lib/puppet/parser/functions/sqlserver_is_domain_or_local_user.rb
  13. +36 −0 lib/puppet/parser/functions/sqlserver_validate_instance_name.rb
  14. +11 −0 lib/puppet/parser/functions/sqlserver_validate_on_off.rb
  15. +17 −0 lib/puppet/parser/functions/sqlserver_validate_range.rb
  16. +19 −0 lib/puppet/parser/functions/sqlserver_validate_size.rb
  17. +19 −0 lib/puppet/parser/functions/sqlserver_validate_svrroles_hash.rb
  18. +18 −0 lib/puppet/property/login.rb
  19. +140 −0 lib/puppet/provider/sqlserver.rb
  20. +108 −0 lib/puppet/provider/sqlserver_features/mssql.rb
  21. +116 −0 lib/puppet/provider/sqlserver_instance/mssql.rb
  22. +21 −0 lib/puppet/provider/sqlserver_tsql/mssql.rb
  23. +40 −0 lib/puppet/templates/authenticated_query.ps1.erb
  24. +74 −0 lib/puppet/type/sqlserver_features.rb
  25. +181 −0 lib/puppet/type/sqlserver_instance.rb
  26. +114 −0 lib/puppet/type/sqlserver_tsql.rb
  27. +52 −0 lib/puppet_x/sqlserver/server_helper.rb
  28. +47 −0 manifests/config.pp
  29. +183 −0 manifests/database.pp
  30. +81 −0 manifests/login.pp
  31. +58 −0 manifests/sp_configure.pp
  32. +37 −0 metadata.json
  33. +190 −0 spec/defines/database_spec.rb
  34. +43 −0 spec/defines/login_spec.rb
  35. +65 −0 spec/defines/manifest_shared_examples.rb
  36. +57 −0 spec/defines/sp_configure_spec.rb
  37. +14 −0 spec/functions/functions_shared_examples.rb
  38. +39 −0 spec/functions/sqlserver_is_domain_user_spec.rb
  39. +12 −0 spec/functions/sqlserver_validate_instance_name_spec.rb
  40. +46 −0 spec/functions/sqlserver_validate_size_spec.rb
  41. +48 −0 spec/functions/sqlserver_validate_svrroles_hash_spec.rb
  42. +6 −0 spec/spec.opts
  43. +20 −0 spec/spec_helper.rb
  44. +141 −0 spec/unit/puppet/provider/sqlserver__instance_spec.rb
  45. +130 −0 spec/unit/puppet/provider/sqlserver_features_spec.rb
  46. +34 −0 spec/unit/puppet/sqlserver_install_context.rb
  47. +32 −0 spec/unit/puppet/sqlserver_spec_helper.rb
  48. +66 −0 spec/unit/puppet/type/sqlserver_instance_spec.rb
  49. +56 −0 spec/unit/puppet_x/server_helper_spec.rb
  50. +120 −0 templates/create/database.sql.erb
  51. +52 −0 templates/create/login.sql.erb
  52. +11 −0 templates/create/sp_configure.sql.erb
  53. +11 −0 templates/delete/database.sql.erb
  54. +8 −0 templates/delete/login.sql.erb
  55. +1 −0 templates/instance_config.erb
  56. +27 −0 templates/query/database_exists.sql.erb
  57. +37 −0 templates/query/login_exists.sql.erb
  58. +15 −0 templates/query/sp_configure.sql.erb
  59. +5 −0 templates/snippets/begin_catch.sql.erb
  60. +1 −0 templates/snippets/database/collation_exists.sql.erb
  61. +1 −0 templates/snippets/database/compatibility_exists.sql.erb
  62. +1 −0 templates/snippets/database/containment_exists.sql.erb
  63. +1 −0 templates/snippets/database/db_chaining_exists.sql.erb
  64. +3 −0 templates/snippets/database/default_fulltext_language_exists.sql.erb
  65. +3 −0 templates/snippets/database/default_language_exists.sql.erb
  66. +1 −0 templates/snippets/database/nested_triggers_exists.sql.erb
  67. +1 −0 templates/snippets/database/transform_noise_words_exists.sql.erb
  68. +1 −0 templates/snippets/database/trustworthy_exists.sql.erb
  69. +1 −0 templates/snippets/database/two_digit_year_cutoff_exists.sql.erb
5 changes: 5 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fixtures:
forge_modules:
stdlib: "puppetlabs/stdlib"
symlinks:
"sqlserver": "#{source_dir}"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.iml
.idea
coverage
spec/log
Gemfile.lock
.bundle
spec/fixtures
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
language: ruby
bundler_args: --without development
script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
rvm:
- 1.9.3
- 2.0.0
env:
matrix:
- PUPPET_GEM_VERSION="~> 3.7.1"
matrix:
fast_finish: true
notifications:
email: false
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
##2014-12-08 - 1.0.0
Initial release
23 changes: 23 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :development, :test do
gem 'nokogiri'
gem 'mime-types', '<2.0', :require => false
gem 'rake', :require => false
gem 'rspec-puppet', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'puppet-lint', :require => false
gem 'simplecov', :require => false
gem 'rspec', '~> 2.14.0', :require => false
gem 'beaker-rspec', :require => false
gem 'yard', :require => false
gem 'pry', :require => false
end

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', '~> 3.7', :require => false
end

# vim:ft=ruby
6 changes: 6 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This Module is only available for users of Puppet Enterprise with a valid Software License Agreement
for Puppet Enterprise. This Module is not available for users of Puppet software under an open source license.

By downloading this Module, you agree that you have a valid Software License Agreement with Puppet Labs for
Puppet Enterprise and you further agree that your use of this Module is governed by the terms of that
Software License Agreement.
Loading