Skip to content

Commit

Permalink
Merge pull request #2681 from abutcher/journald-log-driver
Browse files Browse the repository at this point in the history
Bug 1388191 - Default docker log driver should be journald
  • Loading branch information
sdodson committed Feb 2, 2017
2 parents 4dfe8c7 + 222e0e5 commit 3cb6ca6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inventory/byo/hosts.origin.example
Expand Up @@ -79,7 +79,7 @@ openshift_release=v1.4
# Disable pushing to dockerhub
#openshift_docker_disable_push_dockerhub=True
# Items added, as is, to end of /etc/sysconfig/docker OPTIONS
# Default value: "--log-driver=json-file --log-opt max-size=50m"
# Default value: "--log-driver=journald"
#openshift_docker_options="-l warn --ipv6=false"

# Specify exact version of Docker to configure or upgrade to.
Expand Down
2 changes: 1 addition & 1 deletion inventory/byo/hosts.ose.example
Expand Up @@ -79,7 +79,7 @@ openshift_release=v3.4
# Disable pushing to dockerhub
#openshift_docker_disable_push_dockerhub=True
# Items added, as is, to end of /etc/sysconfig/docker OPTIONS
# Default value: "--log-driver=json-file --log-opt max-size=50m"
# Default value: "--log-driver=journald"
#openshift_docker_options="-l warn --ipv6=false"

# Specify exact version of Docker to configure or upgrade to.
Expand Down
2 changes: 1 addition & 1 deletion roles/openshift_facts/library/openshift_facts.py
Expand Up @@ -2027,7 +2027,7 @@ def get_defaults(self, roles, deployment_type, deployment_subtype):

if 'docker' in roles:
docker = dict(disable_push_dockerhub=False,
options='--log-driver=json-file --log-opt max-size=50m')
options='--log-driver=journald')
# NOTE: This is a workaround for a dnf output racecondition that can occur in
# some situations. See https://bugzilla.redhat.com/show_bug.cgi?id=918184
if self.system_facts['ansible_pkg_mgr'] == 'dnf':
Expand Down

0 comments on commit 3cb6ca6

Please sign in to comment.