]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Adding some logging
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 21 Aug 2018 09:31:08 +0000 (11:31 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 21 Aug 2018 09:31:08 +0000 (11:31 +0200)
lib/webhooks/r10k.py

index bc6c49ccdfc9e4e610a29c2fd7b441fb36ae6123..fdec7b82cfbad03c98b266add5106dd3453568fe 100644 (file)
@@ -280,6 +280,9 @@ class R10kHookApp(BaseHookApp):
         """Generates definitions for custom resource types using Puppet code
             for the given environment."""
 
+        LOG.info("Generating Puppet types for env {!r} on {!r}.".format(
+            self.ref, self.puppetmaster_host))
+
         res = True
 
         cmd = [
@@ -313,6 +316,9 @@ class R10kHookApp(BaseHookApp):
     # -------------------------------------------------------------------------
     def exec_r10k(self):
 
+        LOG.info("Deploying r10k environment {!r} on {!r}.".format(
+            self.ref, self.puppetmaster_host))
+
         res = True
 
         r10k_loglevel = 'info'