puppet 2.6.16 → 2.6.17

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (39) hide show
  1. data/CHANGELOG +13 -0
  2. data/conf/redhat/puppet.spec +4 -1
  3. data/lib/puppet.rb +1 -1
  4. data/lib/puppet/application/master.rb +26 -6
  5. data/lib/puppet/file_bucket/file.rb +5 -6
  6. data/lib/puppet/file_serving/configuration.rb +2 -1
  7. data/lib/puppet/file_serving/content.rb +1 -2
  8. data/lib/puppet/file_serving/metadata.rb +1 -2
  9. data/lib/puppet/file_serving/mount/modules.rb +4 -5
  10. data/lib/puppet/file_serving/{indirection_hooks.rb → terminus_selector.rb} +2 -3
  11. data/lib/puppet/indirector/file_bucket_file/selector.rb +49 -0
  12. data/lib/puppet/indirector/file_content/selector.rb +30 -0
  13. data/lib/puppet/indirector/file_metadata/selector.rb +30 -0
  14. data/lib/puppet/reports/store.rb +7 -3
  15. data/lib/puppet/ssl/base.rb +8 -0
  16. data/lib/puppet/ssl/certificate_authority.rb +10 -0
  17. data/lib/puppet/ssl/certificate_authority/interface.rb +4 -2
  18. data/lib/puppet/ssl/host.rb +1 -0
  19. data/spec/integration/file_bucket/file_spec.rb +44 -0
  20. data/spec/integration/file_serving/content_spec.rb +1 -8
  21. data/spec/integration/file_serving/metadata_spec.rb +1 -8
  22. data/spec/integration/indirector/file_content/file_server_spec.rb +2 -2
  23. data/spec/shared_behaviours/file_serving.rb +71 -62
  24. data/spec/shared_behaviours/file_serving_model.rb +73 -0
  25. data/spec/spec_helper.rb +29 -0
  26. data/spec/unit/file_serving/configuration_spec.rb +37 -29
  27. data/spec/unit/file_serving/content_spec.rb +0 -4
  28. data/spec/unit/file_serving/metadata_spec.rb +0 -4
  29. data/spec/unit/file_serving/mount/modules_spec.rb +8 -0
  30. data/spec/unit/file_serving/{indirection_hooks_spec.rb → terminus_selector_spec.rb} +11 -12
  31. data/spec/unit/indirector/file_bucket_file/selector_spec.rb +29 -0
  32. data/spec/unit/indirector/file_content/selector_spec.rb +10 -0
  33. data/spec/unit/indirector/file_metadata/selector_spec.rb +11 -0
  34. data/spec/unit/network/handler/ca_spec.rb +1 -0
  35. data/spec/unit/reports/store_spec.rb +14 -0
  36. data/spec/unit/ssl/certificate_authority/interface_spec.rb +17 -17
  37. data/spec/unit/ssl/certificate_authority_spec.rb +76 -11
  38. metadata +16 -9
  39. data/lib/puppet/file_bucket/file/indirection_hooks.rb +0 -9
@@ -1,9 +0,0 @@
1
- require 'puppet/file_bucket/file'
2
-
3
- # This module is used to pick the appropriate terminus
4
- # in filebucket indirections.
5
- module Puppet::FileBucket::File::IndirectionHooks
6
- def select_terminus(request)
7
- return(request.protocol == 'https' ? :rest : Puppet::FileBucket::File.indirection.terminus_class)
8
- end
9
- end