We currently do the following to add the 'stack' user on the undercloud
to the 'docker' group so it can access the docker daemon (when the local
docker registry option is enabled):
...
if str2bool(hiera('enable_docker_registry', true)) {
group { 'docker':
ensure => 'present',
}
user { 'docker_user':
name => hiera('tripleo_install_user'),
groups => 'docker',
notify => Service['docker'],
}
include ::tripleo::profile::base::docker_registry
}
...
For this to work the stack user needs to logoff and logon again.
Closes-Bug: #1722498
Change-Id: Ia1f76f61828c119667879c41f1ad5d86b8901adb