From 5ef76cc16c4a4b5e0dce69456dac7ae98fd7af6a Mon Sep 17 00:00:00 2001
From: Mike Fedosin <mfedosin@redhat.com>
Date: Thu, 21 Dec 2017 20:47:07 +0100
Subject: [PATCH] Allow to increase docker daemon verbosity

This patch exposes puppet_tripleo's docker_options
in the tripleo-heat-templates.

Change-Id: I1b48b2a25dfa5afc3d2e4e4c8f0593e03ead3907
Closes-bug: #1715134
---
 puppet/services/docker.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/puppet/services/docker.yaml b/puppet/services/docker.yaml
index 6bb26c116b..b53d7132cb 100644
--- a/puppet/services/docker.yaml
+++ b/puppet/services/docker.yaml
@@ -50,6 +50,10 @@ parameters:
     type: string
     constraints:
       - allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
+  DockerOptions:
+    default: '--log-driver=journald --signature-verification=false --iptables=false'
+    description: Options that are used to startup the docker service.
+    type: string
 
 conditions:
   insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
@@ -65,6 +69,7 @@ outputs:
         map_merge:
           - tripleo::profile::base::docker::configure_network: true
             tripleo::profile::base::docker::network_options: "--bip=172.31.0.1/24"
+            tripleo::profile::base::docker::docker_options: {get_param: DockerOptions}
             tripleo::profile::base::docker::debug:
               if:
                 - service_debug_unset