Merge "Docker: Enable TLS in the internal network for libvirt"
[apex-tripleo-heat-templates.git] / puppet / services / docker.yaml
1 heat_template_version: pike
2
3 description: >
4   Configures docker on the host
5
6 parameters:
7   DockerInsecureRegistryAddress:
8     description: Optional. The IP Address and Port of an insecure docker
9                  namespace that will be configured in /etc/sysconfig/docker.
10                  The value can be multiple addresses separated by commas.
11     type: comma_delimited_list
12     default: []
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   ServiceData:
19     default: {}
20     description: Dictionary packing service data
21     type: json
22   ServiceNetMap:
23     default: {}
24     description: Mapping of service_name -> network name. Typically set
25                  via parameter_defaults in the resource registry.  This
26                  mapping overrides those in ServiceNetMapDefaults.
27     type: json
28   DefaultPasswords:
29     default: {}
30     type: json
31   RoleName:
32     default: ''
33     description: Role name on which the service is applied
34     type: string
35   RoleParameters:
36     default: {}
37     description: Parameters specific to the role
38     type: json
39
40 conditions:
41   insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
42
43 outputs:
44   role_data:
45     description: Role data for the docker service
46     value:
47       service_name: docker
48       config_settings:
49         if:
50         - insecure_registry_is_empty
51         - {}
52         - tripleo::profile::base::docker::insecure_registries: {get_param: DockerInsecureRegistryAddress}
53       step_config: |
54         include ::tripleo::profile::base::docker
55       upgrade_tasks:
56         - name: Install docker packages on upgrade if missing
57           tags: step3
58           yum: name=docker state=latest