From: Frank Brehm Date: Fri, 3 Sep 2021 08:37:48 +0000 (+0200) Subject: Adding '-o StrictHostKeyChecking=accept-new' to calling SSH to puppetmaster and puppetca X-Git-Tag: 1.5.2^2~45 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=18a903590a426f98e03131964958f75624f40a19;p=pixelpark%2Fcreate-terraform.git Adding '-o StrictHostKeyChecking=accept-new' to calling SSH to puppetmaster and puppetca --- 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 }}