forked from ismell/docker-registry-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.rb
47 lines (38 loc) · 1.48 KB
/
metadata.rb
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
name "docker-registry"
maintainer "Raul E Rangel"
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs and configures docker-registry"
version "0.0.4"
recipe "docker-registry", "Installs the docker-registry and sets up configuration"
# TODO: debian centos redhat amazon scientific oracle fedora
%w{ ubuntu smartos }.each do |os|
supports os
end
%w{ application_nginx application_python }.each do |cb|
depends cb
end
depends 'application', '>= 3.0.0'
attribute "docker-registry/repository",
:display_name => "Docker Registry Git Repo",
:description => "The URL for the Docker Registry Git Repo",
:type => "string",
:required => "required",
:default => "https://github.com/dotcloud/docker-registry.git"
attribute "docker-registry/revision",
:display_name => "Docker Registry Revision",
:description => "The revision to check out from the repository",
:type => "string",
:required => "required"
attribute "docker-registry/install_dir",
:display_name => "Docker Registry Install Directory",
:description => "The directory to install Docker Registry",
:type => "string",
:required => "required",
:default => "/opt/docker-registry"
#TODO: Fill in the rest... for some reason?
attribute "docker-registry/data_bag",
:display_name => "Data Bag containing secrets",
:description => "The data bag that contains environment files with ssl and s3 keys",
:type => "string",
:required => "recommended"