aboutsummaryrefslogtreecommitdiff
path: root/ansible/kolla-host.yml
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2018-07-13 15:49:30 +0100
committerMark Goddard <mark@stackhpc.com>2018-12-17 14:04:43 +0000
commit48aea5637f3375364cf8330d63389c6785462142 (patch)
tree902d105b2e41ed373f118b625b6f3d2c35eaa9fd /ansible/kolla-host.yml
parent404d0b1c12b7e69e78c08ad05042d2389c1a8fca (diff)
downloadkolla-ansible-48aea5637f3375364cf8330d63389c6785462142.tar.gz
kolla-ansible-48aea5637f3375364cf8330d63389c6785462142.zip
Support Docker CE in bootstrap-servers
Kolla Ansible's bootstrap-servers command provides support for installing the Docker engine. This is currently done using the packages at https://apt.dockerproject.org and https://yum.dockerproject.org. These packages are outdated, with the most recent packages from May 2017 - docker-engine-17.05. The source for up to date docker packages is https://download.docker.com, which was introduced with the move to Docker Community Edition (CE) and Docker Enterprise Edition (EE). This change adds support to bootstrap-servers for Docker CE for CentOS and Ubuntu. It also adds a new variable, 'enable_docker_repo', which controls whether a package repository for Docker will be enabled. It also adds a new variable, 'docker_legacy_packages', which controls whether the legacy packages at dockerproject.org will be used or the newer packages at docker.com. The default value for this variable is 'false', meaning to use Docker CE. Upgrading from docker-engine to docker-ce has been tested on CentOS 7.5 and Ubuntu 16.04, by running 'kolla-ansible bootstrap-servers' with 'docker_legacy_packages' set to 'false'. The upgrades were successful, but result in all containers being stopped. For this reason, the bootstrap-servers command checks running containers prior to upgrading packages, and ensures they are running after the package upgrade is complete. As mentioned in the release note, care should be taken when upgrading Docker with clustered services, which could lose quorum. To avoid this, use --serial or --limit to apply the change in batches. Change-Id: I6dfd375c868870f8646ef1a8f02c70812e8f6271 Implements: blueprint docker-ce
Diffstat (limited to 'ansible/kolla-host.yml')
-rw-r--r--ansible/kolla-host.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/ansible/kolla-host.yml b/ansible/kolla-host.yml
index e0b9bec9b..fb55075e3 100644
--- a/ansible/kolla-host.yml
+++ b/ansible/kolla-host.yml
@@ -33,7 +33,8 @@
- name: Apply role baremetal
hosts: baremetal
- gather_facts: no
+ serial: '{{ kolla_serial|default("0") }}'
+ gather_facts: false
roles:
- { role: baremetal,
tags: baremetal }