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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'manifests/resource/repository/docker/hosted.pp', line 33
define nexus::resource::repository::docker::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,
Boolean $docker_v1_enabled = false,
Boolean $docker_force_basic_auth = true,
Optional[Stdlib::Port] $docker_http_port = undef,
Optional[Stdlib::Port] $docker_https_port = undef,
Optional[Stdlib::Fqdn] $docker_subdomain = undef,
Array[String[1]] $cleanup_policy_names = [],
) {
nexus_repository { $title:
ensure => $ensure,
format => 'docker',
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,
},
'docker' => {
'v1Enabled' => $docker_v1_enabled,
'forceBasicAuth' => $docker_force_basic_auth,
'httpPort' => $docker_http_port,
'httpsPort' => $docker_https_port,
'subdomain' => $docker_subdomain,
},
},
}
}
|