]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Changing ssh StrictHostKeyChecking from accept-new to no
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Sep 2021 15:25:40 +0000 (17:25 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Sep 2021 15:25:40 +0000 (17:25 +0200)
lib/cr_tf/handler.py

index 4a368e696d6918c18b7f75c037949153f6de57ea..0d85060b5fa3421171126a63949684f457990a7b 100644 (file)
@@ -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
         }}