Add DockerDebug
Implement a mechanism to enable docker service debug logging. If DockerDebug is unset defaults to the normal Debug parameter setting. Change-Id: I4f4627c7d8e90121c1262b2518b02989f5aaed18
This commit is contained in:
parent
1724c7d088
commit
07bc933d0d
@ -40,10 +40,21 @@ parameters:
|
|||||||
default: {}
|
default: {}
|
||||||
description: Parameters specific to the role
|
description: Parameters specific to the role
|
||||||
type: json
|
type: json
|
||||||
|
Debug:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: Set to True to enable debugging on all services.
|
||||||
|
DockerDebug:
|
||||||
|
default: ''
|
||||||
|
description: Set to True to enable debugging Docker services.
|
||||||
|
type: string
|
||||||
|
constraints:
|
||||||
|
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
insecure_registry_is_empty: {equals : [{get_param: DockerInsecureRegistryAddress}, []]}
|
||||||
insecure_registry_mirror_is_empty: {equals : [{get_param: DockerRegistryMirror}, '']}
|
insecure_registry_mirror_is_empty: {equals : [{get_param: DockerRegistryMirror}, '']}
|
||||||
|
service_debug_unset: {equals : [{get_param: DockerDebug}, '']}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -54,6 +65,11 @@ outputs:
|
|||||||
map_merge:
|
map_merge:
|
||||||
- tripleo::profile::base::docker::configure_network: true
|
- tripleo::profile::base::docker::configure_network: true
|
||||||
tripleo::profile::base::docker::network_options: "--bip=172.31.0.1/24"
|
tripleo::profile::base::docker::network_options: "--bip=172.31.0.1/24"
|
||||||
|
tripleo::profile::base::docker::debug:
|
||||||
|
if:
|
||||||
|
- service_debug_unset
|
||||||
|
- {get_param: Debug }
|
||||||
|
- {get_param: DockerDebug}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- insecure_registry_is_empty
|
- insecure_registry_is_empty
|
||||||
|
Loading…
Reference in New Issue
Block a user