diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-03-28 10:37:47 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-03-28 13:56:21 -0400 |
commit | d47ea8839b55e78d12de71f0a1bd7746262d6d71 (patch) | |
tree | cf76f2cf4568451eea3e42c74b2e7c19921b754b | |
parent | e9a4e751bc28f43583087ce6502a36c5d83cf30d (diff) | |
download | openshift-d47ea8839b55e78d12de71f0a1bd7746262d6d71.tar.gz openshift-d47ea8839b55e78d12de71f0a1bd7746262d6d71.tar.bz2 openshift-d47ea8839b55e78d12de71f0a1bd7746262d6d71.tar.xz openshift-d47ea8839b55e78d12de71f0a1bd7746262d6d71.zip |
Add etcd_debug and etcd_log_package_levels variables
-rw-r--r-- | inventory/byo/hosts.origin.example | 4 | ||||
-rw-r--r-- | inventory/byo/hosts.ose.example | 4 | ||||
-rw-r--r-- | roles/etcd/templates/etcd.conf.j2 | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/inventory/byo/hosts.origin.example b/inventory/byo/hosts.origin.example index 033ce8a82..7e58eb543 100644 --- a/inventory/byo/hosts.origin.example +++ b/inventory/byo/hosts.origin.example @@ -91,6 +91,10 @@ openshift_release=v1.5 # Specify exact version of etcd to configure or upgrade to. # etcd_version="3.1.0" +# Enable etcd debug logging, defaults to false +# etcd_debug=true +# Set etcd log levels by package +# etcd_log_package_levels="etcdserver=WARNING,security=DEBUG" # Upgrade Hooks # diff --git a/inventory/byo/hosts.ose.example b/inventory/byo/hosts.ose.example index 49bcb7405..3002feac2 100644 --- a/inventory/byo/hosts.ose.example +++ b/inventory/byo/hosts.ose.example @@ -91,6 +91,10 @@ openshift_release=v3.5 # Specify exact version of etcd to configure or upgrade to. # etcd_version="3.1.0" +# Enable etcd debug logging, defaults to false +# etcd_debug=true +# Set etcd log levels by package +# etcd_log_package_levels="etcdserver=WARNING,security=DEBUG" # Upgrade Hooks # diff --git a/roles/etcd/templates/etcd.conf.j2 b/roles/etcd/templates/etcd.conf.j2 index 990a86c21..9151dd0bd 100644 --- a/roles/etcd/templates/etcd.conf.j2 +++ b/roles/etcd/templates/etcd.conf.j2 @@ -60,3 +60,9 @@ ETCD_PEER_CA_FILE={{ etcd_peer_ca_file }} ETCD_PEER_CERT_FILE={{ etcd_peer_cert_file }} ETCD_PEER_KEY_FILE={{ etcd_peer_key_file }} {% endif -%} + +#[logging] +ETCD_DEBUG="{{ etcd_debug | default(false) | string }}" +{% if etcd_log_package_levels is defined %} +ETCD_LOG_PACKAGE_LEVELS="{{ etcd_log_package_levels }}" +{% endif %} |