From 18a903590a426f98e03131964958f75624f40a19 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 3 Sep 2021 10:37:48 +0200 Subject: [PATCH] Adding '-o StrictHostKeyChecking=accept-new' to calling SSH to puppetmaster and puppetca --- lib/cr_tf/handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index f331515..d656820 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.4.7' +__version__ = '3.4.8' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2741,7 +2741,7 @@ class CreateTerraformHandler(BaseHandler): content = textwrap.indent(textwrap.dedent('''\ provisioner "local-exec" {{ - command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca sign --certname {h} || true'" + command = "ssh -o StrictHostKeyChecking=accept-new {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca sign --certname {h} || true'" }} provisioner "remote-exec" {{ @@ -2779,12 +2779,12 @@ class CreateTerraformHandler(BaseHandler): }} provisioner "local-exec" {{ - command = "ssh {ma} 'sudo /opt/puppetlabs/bin/puppet node deactivate {h} || true'" + command = "ssh -o StrictHostKeyChecking=accept-new {ma} 'sudo /opt/puppetlabs/bin/puppet node deactivate {h} || true'" when = destroy }} provisioner "local-exec" {{ - command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca clean --certname {h} || true'" + command = "ssh -o StrictHostKeyChecking=accept-new {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca clean --certname {h} || true'" when = destroy }} -- 2.39.5