summaryrefslogtreecommitdiff
path: root/roles/docker
AgeCommit message (Collapse)Author
2017-01-25Comma separate no_proxy host list in openshift_facts so that it appears as a ↵Andrew Butcher
string everywhere it is used.
2017-01-24Add new option 'openshift_docker_selinux_enabled'Russell Teague
Allows controlling 'selinux-enabled' docker options Can be set to true or false
2017-01-17v1.3 Add RHAMPScott Dodson
2016-12-14Enable firewalld by defaultRussell Teague
2016-12-12YAML LintingRussell Teague
* Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
2016-11-28Refactored to use Ansible systemd moduleRussell Teague
* Ansible systemd module used in place of service module * Refactored command tasks which are no longer necessary * Applying rules from openshift-ansible Best Practices Guide
2016-11-28Updating docs for Ansible 2.2 requirementsRussell Teague
2016-11-17Refactor to use Ansible package moduleRussell Teague
The Ansible package module will call the correct package manager for the underlying OS.
2016-11-14Docker daemon is started prematurely.Eric Mountain
Docker service is started prior to configuration changes being applied. The service is then not restarted by the handlers, so configuration changes are not applied. We now start the docker service only once all config changes have been made.
2016-11-14Added dependency of os_firewall to docker roleRussell Teague
The docker role requires iptables-services to be installed. Added dependency on so_firewall role to ensure the iptables service is installed first. Currently this will only work with iptables and not with firewalld. * Added allow_duplicates to os_firewall role meta * Removed unused task from docker/tasks * Corrected os_firewall Defaults in README
2016-11-11Resolve docker and iptables service dependenciesRussell Teague
The docker service adds rules to the iptables configuration to support proper network functionality for running containers. If the service is started prior to iptables, these rules are not properly created. * Ensure iptables is started prior to docker Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1390835
2016-10-19Fix typosRodolfo Carvalho
2016-09-29Skip the docker role in early upgrade stages.Devan Goodwin
This improves the situation further and prevents configuration changes from accidentally triggering docker restarts, before we've evacuated nodes. Now in two places, we skip the role entirely, instead of previous implementation which only skipped upgrading the installed version. (which did not catch config issues)
2016-08-27Fix review commentsManjunath A Kumatagi
2016-08-18Fix typoManjunath A Kumatagi
2016-08-17Fix errors in docker roleManjunath A Kumatagi
2016-07-15Clarify message when old docker pre-installed but 1.10+ requested.Devan Goodwin
2016-07-14Fix upgrade with docker_version set.Devan Goodwin
2016-07-13Fix more docker role logic.Devan Goodwin
2016-07-13Add checks to docker role for 1.9.1+.Devan Goodwin
If Docker 1.8.2 is pre-installed, and no docker_version was requested, role will now error out because 1.9.1 is required. If docker_version is set to <= 1.9.1, we also error out as this is not supported.
2016-07-08Remove/update TODOs.Devan Goodwin
2016-07-08Remove all debug used during devel of openshift_version.Devan Goodwin
2016-07-04Merge branch 'master' into upgrade33Devan Goodwin
2016-06-29Switch to repoquery, enable plugins for satellite supportScott Dodson
2016-06-27Only nuke images when crossing the Docker 1.10 boundary in upgrade.Devan Goodwin
2016-06-20Fix docker restarts during openshift_version role.Devan Goodwin
The variable here must be explicitly passed to the docker role, if it's passed sometimes and not others, the docker config changes triggers a docker restart effectively killing everything on the node in an unsafe manner. Instead lets make sure the value is set.
2016-06-20Support setting a docker version in inventory.Devan Goodwin
2016-06-10Remove Docker 1.10 requirement temporarily.Devan Goodwin
Docker 1.10 is not widely available in RHEL / CentOS yet, lets remove the restriction for users of master / origin. We can revert as soon as it's available publically.
2016-06-09Merge pull request #2005 from brenton/bz1338726Brenton Leanhardt
Bug 1338726 - never abort install if the latest version of docker is already installed
2016-06-08Bug 1338726 - never abort install if the latest version of docker is already ↵Brenton Leanhardt
installed
2016-06-07Preserve proxy config if it's undefinedScott Dodson
2016-06-03Docker 1.10 UpgradeDevan Goodwin
Adds a separate playbook for Docker 1.10 upgrade that can be run standalone on a pre-existing 3.2 cluster. The upgrade will take each node out of rotation, and remove *all* containers and images on it, as this is reportedly faster and more storage efficient than performing the in place 1.10 upgrade. This process is integrated into the 3.1 to 3.2 upgrade process. Normal config playbooks now become 3.2 only, and require Docker 1.10. Users of older environments will have to use an appropriate openshift-ansible version. Config playbooks no longer are in the business of upgrading or downgrading docker.
2016-05-09Merge tag 'openshift-ansible-3.0.89-1'Brenton Leanhardt
Tagging package [openshift-ansible] version [3.0.89-1] in directory [./].
2016-05-09Use yum swap to downgrade dockerScott Dodson
2016-05-09Fix cli_docker_additional_registries being erased during upgrade.Devan Goodwin
Legacy options (cli_*) were not being migrated during upgrade. Add the oo_all_hosts group, and migrate the facts as we do in the normal cluster playbooks.
2016-04-26Don't set empty HTTP_PROXY, HTTPS_PROXY, NO_PROXY valuesScott Dodson
2016-04-22Add global proxy configurationScott Dodson
Configures HTTP_PROXY, HTTPS_PROXY, NO_PROXY for master and docker services. Configugres BuildDefaults Admission controller for master to automatically insert proxy environment configuration into build environments. To use set at least these variables - openshift_http_proxy - openshift_https_proxy NO_PROXY entries will automatically be configured for hostnames of all openshift hosts. You may specify additional NO_PROXY hosts or patterns by setting `openshift_no_proxy` If you wish to disable automatic generation of NO_PROXY hosts you may set `openshift_generate_no_proxy_hosts` to False. If you wish to have different builddefaults proxy configuration than baseline proxy configuration set these variables - openshift_builddefaults_http_proxy - openshift_builddefaults_https_proxy - openshift_builddefaults_no_proxy - openshift_builddefaults_git_http_proxy - openshift_builddefaults_git_https_proxy
2016-04-22Fix for docker not presentJason DeTiberus
2016-04-15Refactor docker failed state cleanupScott Dodson
2016-04-14start it, check for failure, reset it, start againScott Dodson
2016-04-14Enable docker before potentially resetting the failureScott Dodson
2016-04-12Containerized installs on RHEL were downgrading docker unnecessarilyBrenton Leanhardt
2016-04-11Fix a docker-storage sysconfig bug.Devan Goodwin
2016-04-06Test docker_version_result.stdout when determining if docker should be ↵Andrew Butcher
installed/downgraded.
2016-04-05Downgrade to docker 1.8.2 if installing OSE < 3.2Scott Dodson
2016-03-17Merge pull request #1614 from detiber/bz1317755Brenton Leanhardt
Bug 1317755 - Set insecure-registry for internal registry by default
2016-03-17Bug 1317755 - Set insecure-registry for internal registry by defaultJason DeTiberus
2016-03-16Fixing undefined variable checkKenny Woodson
2016-03-14OSE/Origin < 3.2/1.2 should not get Docker 1.9Scott Dodson
RHEL and Centos docker-1.9 RPMs will have a Conflicts for origin and atomic-openshift < 3.2. If we left yum to its own devices we'd get a mess when trying to install once these packages land in the repos. So avoid installing docker-1.9 on Origin/OSE < 1.2/3.2. See: https://bugzilla.redhat.com/show_bug.cgi?id=1304038 Fedora doesn't keep old packages in repos so we just get the latest there. Docker 1.10 should be fine if and when it becomes available.
2016-03-14Docker role refactorJason DeTiberus
- refactors the docker role to push generic config into docker role and wrap openshift specific variables into an openshift_docker role and it's dependent openshift_docker_facts role - adds support for setting --confirm-def-push flag (Resolves https://github.com/openshift/openshift-ansible/issues/1014) - moves docker related facts from common/node roles to a new docker role - renames cli_docker_* role varialbes to openshift_docker-* (maintaining backward compatibility) - update role dependencies to pull in openshift_docker conditionally based on is_containerized - remove playbooks/common/openshift-docker since the docker role is now conditionally included