Skip to content

Commit

Permalink
Merge pull request #4370 from ashcrow/rename-daemon-json
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Jun 7, 2017
2 parents f0b8761 + 7c6ae47 commit f510d55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roles/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Docker

Ensures docker package or system container is installed, and optionally raises timeout for systemd-udevd.service to 5 minutes.

daemon.json items may be found at https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
container-daemon.json items may be found at https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

Requirements
------------
Expand Down
10 changes: 6 additions & 4 deletions roles/docker/tasks/systemcontainer_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,21 @@
dest: "{{ container_engine_systemd_dir }}/custom.conf"
src: systemcontainercustom.conf.j2

# Set local versions of facts that must be in json format for daemon.json
# NOTE: When jinja2.9+ is used the daemon.json file can move to using tojson
# Set local versions of facts that must be in json format for container-daemon.json
# NOTE: When jinja2.9+ is used the container-daemon.json file can move to using tojson
- set_fact:
l_docker_insecure_registries: "{{ docker_insecure_registries | default([]) | to_json }}"
l_docker_log_options: "{{ docker_log_options | default({}) | to_json }}"
l_docker_additional_registries: "{{ docker_additional_registries | default([]) | to_json }}"
l_docker_blocked_registries: "{{ docker_blocked_registries | default([]) | to_json }}"
l_docker_selinux_enabled: "{{ docker_selinux_enabled | default(true) | to_json }}"

# Configure container-engine using the daemon.json file
# Configure container-engine using the container-daemon.json file
# NOTE: daemon.json and container-daemon.json have been seperated to avoid
# collision.
- name: Configure Container Engine
template:
dest: "{{ docker_conf_dir }}/daemon.json"
dest: "{{ docker_conf_dir }}/container-daemon.json"
src: daemon.json

# Enable and start the container-engine service
Expand Down

0 comments on commit f510d55

Please sign in to comment.