summaryrefslogtreecommitdiff
path: root/roles/docker
AgeCommit message (Collapse)Author
2017-09-14Merge pull request #5401 from sosiouxme/20170913-retries-subsetLuke Meyer
add retries on repoquery
2017-09-13Merge pull request #5359 from mgugino-upstream-stage/version-docker-auth-configOpenShift Bot
Merged by openshift-bot
2017-09-13cri-o: Fix Fedora image nameSteve Milner
Signed-off-by: Steve Milner <smilner@redhat.com>
2017-09-13add retry on repoquery_cmdLuke Meyer
2017-09-11Fix: authenticated registry support for containerized hostsMichael Gugino
Currently, openshift-anisble supports authentication to container registries to pull down openshift container images. The openshift_verison role uses the docker cli to gather image information from container registries before authentication credentials are provided by openshift-ansible. This commit creates the necessary token to authenticate to private registries during openshift_version. The token is generated by the role 'docker' on all hosts where docker is installed/configured when oreg_auth_users is defined. This commit also adds a read-only mount into the openshift master and node container services. This mount is '/var/lib/origin/.docker:/root/.docker:ro'. This is because the container images do not currently read the values in '/var/lib/origin/.docker' as this may be a bug upstream. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1316341
2017-09-11container-engine: Allow full image overrideSteve Milner
openshift_docker_systemcontainer_image_registry_override has been replaced with openshift_docker_systemcontainer_image_override. The difference is openshift_docker_systemcontainer_image_override takes a full image path including the tag. Example: openshift_docker_systemcontainer_image_override=gscrivano/container-engine:latest Signed-off-by: Steve Milner <smilner@redhat.com>
2017-09-07Merge pull request #5310 from ashcrow/split-rhel-centos-crioOpenShift Bot
Merged by openshift-bot
2017-09-06Merge pull request #5202 from giuseppe/crio-additional-registriesOpenShift Bot
Merged by openshift-bot
2017-09-06cri-o: Split RHEL and CentOS imagesSteve Milner
2017-08-25roles: use openshift_use_crioGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-25cri-o: change to system runcGiuseppe Scrivano
Newer versions of cri-o do not carry runc but use the one from the system. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-24cri-o: add support for additional registriesGiuseppe Scrivano
Support added to CRI-O with: https://github.com/kubernetes-incubator/cri-o/commit/a35727c80bd2a26613aae21db00628045cb9be24 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-08First attempt at refactor of os_firewallKenny Woodson
2017-08-04cri-o: configure the CNI networkGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cri-o: allow to override CRI-O image indipendently from DockerGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03docker: introduce use_crio_onlyGiuseppe Scrivano
Introduce a new variable that disable the installation of Docker. For the time being we will still need Docker for building images, so by default leave it installed. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03docker: skip Docker setup when using CRI-OGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cri-o: use only images from Docker HubGiuseppe Scrivano
For the time being it won't be added to the Red Hat registry, so use only what is available on Docker Hub. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cri-o: Enable systemd-modules-load if requiredSteve Milner
If we had to drop the overlay file in /etc/modules-load.d/ then enable the systemd-modules-load service and make sure it runs.
2017-08-03cri-o: Ensure overlay is availableSteve Milner
Some distro releases may not have overlay loaded into the kernel. This change looks for overlay via lsmod and, if it isn't already there, uses modprobe to load it in and then drops a load config into /etc/modules-load.d/overlay.conf.
2017-08-03cri-o: Default insecure registries to ""Steve Milner
2017-08-03crio: use a template for the configurationGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cri-o: Minor fixes for tasksSteve Milner
2017-08-03cri-o: Hardcode image name to cri-oSteve Milner
2017-08-03cri-o: configure storage and insecure registriesGiuseppe Scrivano
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-08-03cri-o: Allow cri-o usage.Steve Milner
This change reuses the docker role to inject cri-o usage.
2017-07-20Merge pull request #4757 from sosiouxme/20170703-docker-storage-overlay2Scott Dodson
openshift_checks/docker_storage: overlay/2 support
2017-07-18Ensure proper fact evaluationScott Dodson
2017-07-18Wrap additional service changes in retriesScott Dodson
2017-07-18Test docker restart with retries 3 delay 30Steve Milner
2017-07-18docker: fix docker_selinux_enabledLuke Meyer
Document the option so that those who want to run on OverlayFS can find it. Fix the task so that setting it to False isn't interpreted as true.
2017-07-07container-engine: Update Fedora registry urlSteve Milner
2017-07-06Install container-selinux with container-engineSteve Milner
2017-06-28Add a retry to the docker restart handlerScott Dodson
2017-06-05rename daemon.json to container-daemon.jsonSteve Milner
The container-engine build has moved daemon.json to container-daemon.json to avoid collision. This change updates the template file location to follow suit.
2017-06-01Add mtu setting to /etc/sysconfig/docker-networkScott Dodson
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1457062
2017-05-25Remove typos that got reintroducedSteve Milner
2017-05-25Remove system-package=no from container-engine installSteve Milner
2017-05-17Merge pull request #4214 from giuseppe/rename-ENIRONMENT-to-EnvironmentOpenShift Bot
Merged by openshift-bot
2017-05-17systemcontainercustom.conf.j2: use Environment instead of ENVIRONMENTGiuseppe Scrivano
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1451187 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-05-16Add regexp for container-engine lineinfileSteve Milner
This ensures that if the line already exists it will be updated with the expected results from the installer.
2017-05-15use dest instead of path for lineinfileSteve Milner
Switching to dest instead of path for lineinfile. path is the name for ansible 2.3+ though dest will work for 2.2 and 2.3. Ref: http://docs.ansible.com/ansible/lineinfile_module.html
2017-05-15Add NO_PROXY workaround for container-engine atomic commandSteve Milner
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1450310
2017-05-15Add no_proxy to atomic.confSteve Milner
Requires: https://github.com/projectatomic/atomic/pull/999
2017-05-14Add docker package for container-engine installSteve Milner
The package is required so that openshift_facts is able to use the docker client to gain information on the versions.
2017-05-12Merge pull request #4174 from ashcrow/remove-userland-proxyOpenShift Bot
Merged by openshift-bot
2017-05-12Remove userland-proxy-path from daemon.jsonSteve Milner
This flag is currently being set within the system container via the init.sh
2017-05-12Fix whistespace issues in custom templateSteve Milner
2017-05-12Always add proxy items to atomic.confSteve Milner
2017-05-12Move container-engine systemd environment to updated locationSteve Milner