Ensure /etc/ssh/ssh_known_hosts exist in docker config-data.
authorOliver Walsh <owalsh@redhat.com>
Tue, 6 Jun 2017 20:16:38 +0000 (21:16 +0100)
committerOliver Walsh <owalsh@redhat.com>
Wed, 7 Jun 2017 11:16:01 +0000 (12:16 +0100)
Works around the issue encountered in 1696283.

Change-Id: I1947d9d1e3cabc5dfe25ee1af994d684425bdbf7
Resolves-Bug: #1696283

docker/docker-puppet.py

index 49dd00c..d9d0c25 100755 (executable)
@@ -176,6 +176,10 @@ def mp_puppet_config((config_volume, puppet_tags, manifest, config_image, volume
             mkdir -p /var/lib/config-data/${NAME}/etc
             cp -a /etc/* /var/lib/config-data/${NAME}/etc/
 
+            # workaround LP1696283
+            mkdir -p /var/lib/config-data/${NAME}/etc/ssh
+            touch /var/lib/config-data/${NAME}/etc/ssh/ssh_known_hosts
+
             if [ -d /root/ ]; then
               cp -a /root/ /var/lib/config-data/${NAME}/root/
             fi