Change flat network name for nosdn fdio scenario
[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         map_merge:
50           - tripleo::profile::base::docker::configure_network: true
51             tripleo::profile::base::docker::network_options: "--bip=172.31.0.1/24"
52           -
53             if:
54             - insecure_registry_is_empty
55             - {}
56             - tripleo::profile::base::docker::insecure_registries: {get_param: DockerInsecureRegistryAddress}
57       step_config: |
58         include ::tripleo::profile::base::docker
59       upgrade_tasks:
60         - name: Install docker packages on upgrade if missing
61           tags: step3
62           yum: name=docker state=latest