From eada0f32da82698ded429e24b5beca404772cfef Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 9 Sep 2021 17:25:40 +0200 Subject: [PATCH] Changing ssh StrictHostKeyChecking from accept-new to no --- 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 4a368e6..0d85060 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -67,7 +67,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.6.2' +__version__ = '3.6.3' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2848,7 +2848,7 @@ class CreateTerraformHandler(BaseHandler): content = textwrap.indent(textwrap.dedent('''\ provisioner "local-exec" {{ - command = "ssh -o StrictHostKeyChecking=accept-new {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca sign --certname {h} || true'" + command = "ssh -o StrictHostKeyChecking=no {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca sign --certname {h} || true'" }} provisioner "remote-exec" {{ @@ -2886,12 +2886,12 @@ class CreateTerraformHandler(BaseHandler): }} provisioner "local-exec" {{ - command = "ssh -o StrictHostKeyChecking=accept-new {ma} 'sudo /opt/puppetlabs/bin/puppet node deactivate {h} || true'" + command = "ssh -o StrictHostKeyChecking=no {ma} 'sudo /opt/puppetlabs/bin/puppet node deactivate {h} || true'" when = destroy }} provisioner "local-exec" {{ - command = "ssh -o StrictHostKeyChecking=accept-new {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca clean --certname {h} || true'" + command = "ssh -o StrictHostKeyChecking=no {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca clean --certname {h} || true'" when = destroy }} -- 2.39.5