25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'manifests/resource/repository/raw/hosted.pp', line 25
define nexus::resource::repository::raw::hosted (
Enum['present', 'absent'] $ensure = 'present',
Boolean $online = true,
String[1] $storage_blob_store_name = $title,
Boolean $storage_strict_content_type_validation = true,
Enum['allow', 'allow_once', 'deny'] $storage_write_policy = 'allow_once',
Boolean $component_proprietary_components = true,
Enum['INLINE', 'ATTACHMENT'] $content_disposition = 'ATTACHMENT',
Array[String[1]] $cleanup_policy_names = [],
) {
nexus_repository { $title:
ensure => $ensure,
format => 'raw',
type => 'hosted',
attributes => {
'online' => $online,
'storage' => {
'blobStoreName' => $storage_blob_store_name,
'strictContentTypeValidation' => $storage_strict_content_type_validation,
'writePolicy' => $storage_write_policy,
},
'cleanup' => {
'policyNames' => $cleanup_policy_names,
},
'component' => {
'proprietaryComponents' => $component_proprietary_components,
},
'raw' => {
'contentDisposition' => $content_disposition,
},
},
}
}
|