Allow subcloud to use central-cloud's local registry

Add the following to setup the environment which allows the subcloud
to use central-cloud's local registry via the OAM interface

 - controller_config:
   copy registry.central certificate from the shared directory to
   docker certificate directory

 - worker_config:
   copy registry.central certificate from the shared directory to
   docker certificate directory

 - sysinv:
   Add a new network type for system controller OAM network
   Retrieve the system controller's OAM floating IP address
   from DB and populate the hiera record for dnsmasq
   Add a public URL encoded address for haproxy

Depends-On: https://review.opendev.org/#/c/690082/
Change-Id: Ibbc7f0ed84679a3ced3a9fee712bd1da5865f213
Partial-Bug: 1846799
Signed-off-by: Tao Liu <tao.liu@windriver.com>
This commit is contained in:
Tao Liu
2019-10-22 09:57:50 -04:00
parent d2ffecde5a
commit 0d8df17df6
5 changed files with 42 additions and 1 deletions

View File

@@ -261,6 +261,17 @@ start()
fi
fi
if [ -e $CONFIG_DIR/registry.central/registry-cert.crt ]
then
mkdir -p /etc/docker/certs.d/registry.central:9001/
chmod 700 /etc/docker/certs.d/registry.central:9001/
cp $CONFIG_DIR/registry.central/registry-cert.crt /etc/docker/certs.d/registry.central:9001/registry-cert.crt
if [ $? -ne 0 ]
then
fatal_error "Unable to copy $CONFIG_DIR/registry-cert.crt to docker dir for central registry"
fi
fi
# banner customization always returns 0, success:
/usr/sbin/install_banner_customization