]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Adding '-o StrictHostKeyChecking=accept-new' to calling SSH to puppetmaster and puppetca
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 3 Sep 2021 08:37:48 +0000 (10:37 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 3 Sep 2021 08:37:48 +0000 (10:37 +0200)
lib/cr_tf/handler.py

index f3315157cb26f926b1404091ed562f7a2cf64594..d656820507dff7be3462da6803cdc01921196f5a 100644 (file)
@@ -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
         }}