Puppet Class: docker_registry::params

Inherited by:
docker_registry
Defined in:
manifests/params.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'manifests/params.pp', line 1

class docker_registry::params {
  case $::osfamily {
    redhat  : {
      $package_name = 'docker-distribution'
      $service_name = 'docker-distribution'
      $config_file  = '/etc/docker-distribution/registry/config.yml'
    }
    suse    : {
      $package_name = 'docker-distribution-registry'
      $service_name = 'registry'
      $config_file  = '/etc/registry/config.yml'
    }
    default : {
      fail("Distribution not supported: ${::osfamily}.")
    }
  }

  $package_ensure = 'installed'
  $service_ensure = 'running'
  $service_enable = true

  $log_level = 'info'
  $log_formatter = 'text'
  $log_fields = undef

  $log_hooks_mail_disabled = true
  $log_hooks_mail_levels = ['panic']
  $log_hooks_mail_smtp_addr = "smtp.${::domain}:25"
  $log_hooks_mail_smtp_username = 'mailuser'
  $log_hooks_mail_smtp_password = 'mailpass'
  $log_hooks_mail_smtp_insecure = true
  $log_hooks_mail_from = "docker-registry@${::fqdn}"
  $log_hooks_mail_to = []

  $storage_type = 'filesystem'
  $filesystem_rootdirectory = '/var/lib/registry'

  $azure_accountname = 'accountname'
  $azure_accountkey = 'base64encodedaccountkey'
  $azure_container = 'containername'
  $azure_realm = 'core.windows.net'

  $gcs_bucket = 'bucketname'
  $gcs_keyfile = '/path/to/keyfile'
  $gcs_rootdirectory = '/gcs/object/name/prefix'

  $s3_accesskey = 'awsaccesskey'
  $s3_secretkey = 'awssecretkey'
  $s3_region = 'us-west-1'
  $s3_bucket = 'bucketname'
  $s3_encrypt = true
  $s3_secure = true
  $s3_v4auth = true
  $s3_chunksize = '5242880'
  $s3_rootdirectory = '/s3/object/name/prefix'

  $rados_poolname = 'radospool'
  $rados_username = 'radosuser'
  $rados_chunksize = '4194304'

  $swift_username = 'username'
  $swift_password = 'password'
  $swift_authurl = 'https://storage.myprovider.com/auth/v1.0 or https://storage.myprovider.com/v2.0 or https://storage.myprovider.com/v3/auth'
  $swift_tenant = 'tenantname'
  $swift_tenantid = 'tenantid'
  $swift_domain = 'domain name for Openstack Identity v3 API'
  $swift_domainid = 'domain id for Openstack Identity v3 API'
  $swift_insecureskipverify = true
  $swift_region = 'fr'
  $swift_container = 'containername'
  $swift_rootdirectory = '/swift/object/name/prefix'
  $swift_trustid = 'swift_trustid'
  $swift_chunksize = '5M'

  $storage_delete = false
  $storage_redirect = false
  $storage_cache_blobdescriptor = 'inmemory'

  $auth_type = undef

  $auth_token_realm = 'token-realm'
  $auth_token_service = 'token-service'
  $auth_token_issuer = 'registry-token-issuer'
  $auth_token_rootcertbundle = '/root/certs/bundle'

  $auth_htpasswd_realm = 'basic-realm'
  $auth_htpasswd_path = '/path/to/htpasswd'

  $http_addr = 'localhost:5000'
  $http_net = 'tcp'
  $http_prefix = '/'
  $http_host = undef
  $http_secret = undef
  $http_tls = false
  $http_tls_certificate = "${::settings::ssldir}/certs/${::clientcert}.pem"
  $http_tls_key = "${::settings::ssldir}/private_keys/${::clientcert}.pem"
  $http_tls_clientcas = undef
  $http_debug_addr = 'localhost:5001'
  $http_headers = {
    'X-Content-Type-Options' => '[nosniff]'
  }

  $notifications_name = $::fqdn
  $notifications_disabled = false
  $notifications_url = undef
  $notifications_headers = undef
  $notifications_timeout = 500
  $notifications_threshold = 5
  $notifications_backoff = 1000

  $redis_addr = undef
  $redis_password = undef
  $redis_db = '0'
  $redis_dialtimeout = '10ms'
  $redis_readtimeout = '10ms'
  $redis_writetimeout = '10ms'
  $redis_pool_maxidle = '16'
  $redis_pool_maxactive = '64'
  $redis_pool_idletimeout = '300s'

  $proxy_remoteurl = undef
  $proxy_username = undef
  $proxy_password = undef
}