puppet 2.6.16 → 2.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +13 -0
- data/conf/redhat/puppet.spec +4 -1
- data/lib/puppet.rb +1 -1
- data/lib/puppet/application/master.rb +26 -6
- data/lib/puppet/file_bucket/file.rb +5 -6
- data/lib/puppet/file_serving/configuration.rb +2 -1
- data/lib/puppet/file_serving/content.rb +1 -2
- data/lib/puppet/file_serving/metadata.rb +1 -2
- data/lib/puppet/file_serving/mount/modules.rb +4 -5
- data/lib/puppet/file_serving/{indirection_hooks.rb → terminus_selector.rb} +2 -3
- data/lib/puppet/indirector/file_bucket_file/selector.rb +49 -0
- data/lib/puppet/indirector/file_content/selector.rb +30 -0
- data/lib/puppet/indirector/file_metadata/selector.rb +30 -0
- data/lib/puppet/reports/store.rb +7 -3
- data/lib/puppet/ssl/base.rb +8 -0
- data/lib/puppet/ssl/certificate_authority.rb +10 -0
- data/lib/puppet/ssl/certificate_authority/interface.rb +4 -2
- data/lib/puppet/ssl/host.rb +1 -0
- data/spec/integration/file_bucket/file_spec.rb +44 -0
- data/spec/integration/file_serving/content_spec.rb +1 -8
- data/spec/integration/file_serving/metadata_spec.rb +1 -8
- data/spec/integration/indirector/file_content/file_server_spec.rb +2 -2
- data/spec/shared_behaviours/file_serving.rb +71 -62
- data/spec/shared_behaviours/file_serving_model.rb +73 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/unit/file_serving/configuration_spec.rb +37 -29
- data/spec/unit/file_serving/content_spec.rb +0 -4
- data/spec/unit/file_serving/metadata_spec.rb +0 -4
- data/spec/unit/file_serving/mount/modules_spec.rb +8 -0
- data/spec/unit/file_serving/{indirection_hooks_spec.rb → terminus_selector_spec.rb} +11 -12
- data/spec/unit/indirector/file_bucket_file/selector_spec.rb +29 -0
- data/spec/unit/indirector/file_content/selector_spec.rb +10 -0
- data/spec/unit/indirector/file_metadata/selector_spec.rb +11 -0
- data/spec/unit/network/handler/ca_spec.rb +1 -0
- data/spec/unit/reports/store_spec.rb +14 -0
- data/spec/unit/ssl/certificate_authority/interface_spec.rb +17 -17
- data/spec/unit/ssl/certificate_authority_spec.rb +76 -11
- metadata +16 -9
- 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
|