diff options
| author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2017-11-13 14:48:29 +0000 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2017-12-14 11:24:52 +0000 |
| commit | b6162f9f1691a992999ff07d0063e4431ae52b68 (patch) | |
| tree | 2358fb20368e499420699f22702b86adc315424e /docker/mongodb | |
| parent | 3a5503f83c22be867f74a8d131d6ed91ea54e7b1 (diff) | |
| download | kolla-b6162f9f1691a992999ff07d0063e4431ae52b68.tar.gz kolla-b6162f9f1691a992999ff07d0063e4431ae52b68.zip | |
mongodb: handle "user already exists" error on Debian
When we install 'mongodb-server' package in Debian/stable it errors out
because 'mongodb' user already exists.
It was reported [1] and got resolved in Debian/testing.
1. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858903
Change-Id: Iabfcbf68a3aea9d7b09b72eb3e8325f09c2f9d31
Diffstat (limited to 'docker/mongodb')
| -rw-r--r-- | docker/mongodb/Dockerfile.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/mongodb/Dockerfile.j2 b/docker/mongodb/Dockerfile.j2 index 73d6f265e..cf842f615 100644 --- a/docker/mongodb/Dockerfile.j2 +++ b/docker/mongodb/Dockerfile.j2 @@ -18,6 +18,11 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build ] %} {% endif %} +{% if base_distro in ['debian'] %} + {# NOTE(hrw) Ubuntu does not need that #} + {{ macros.debian_mongodb_existing_user_fix() }} +{% endif %} + {{ macros.install_packages(mongodb_packages | customizable("packages")) }} COPY mongodb_sudoers /etc/sudoers.d/kolla_mongodb_sudoers |
