]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Changing puppetca commands
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 18 Aug 2020 10:22:04 +0000 (12:22 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 18 Aug 2020 10:22:04 +0000 (12:22 +0200)
lib/cr_tf/handler.py

index 20a44c3c129ad196b6ca621ead371831b6b8e1c9..8a3b9f69b94f5c4297063f542aa62596b67add81 100644 (file)
@@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk
 
 from .xlate import XLATOR
 
-__version__ = '3.4.4'
+__version__ = '3.4.5'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -2739,7 +2739,7 @@ class CreateTerraformHandler(BaseHandler):
 
         content = textwrap.indent(textwrap.dedent('''\
         provisioner "local-exec" {{
-          command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppet cert sign {h} || true'"
+          command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca sign --certname {h} || true'"
         }}
 
         provisioner "remote-exec" {{
@@ -2782,7 +2782,7 @@ class CreateTerraformHandler(BaseHandler):
         }}
 
         provisioner "local-exec" {{
-          command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppet cert clean {h} || true'"
+          command = "ssh {ca} 'sudo /opt/puppetlabs/bin/puppetserver ca clean --certname {h} || true'"
           when    = destroy
         }}