Giuseppe Lavagetto has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370625 )

Change subject: Copy over the puppetdb configuration if present
......................................................................

Copy over the puppetdb configuration if present

Change-Id: I525850947910276b938a9aa5f83db860a12d5a24
---
M puppet_compiler/prepare.py
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/software/puppet-compiler 
refs/changes/25/370625/1

diff --git a/puppet_compiler/prepare.py b/puppet_compiler/prepare.py
index c63dfd1..5faf5a5 100644
--- a/puppet_compiler/prepare.py
+++ b/puppet_compiler/prepare.py
@@ -96,6 +96,13 @@
 
         shutil.copytree(os.path.join(self.puppet_var, 'ssl'),
                         os.path.join(src, 'ssl'))
+        puppetdb_conf = os.path.join(self.puppet_src, 'puppetdb.conf')
+        if os.path.isfile(puppetdb_conf):
+            _log.debug('Copying the puppetdb config file')
+            shutil.copy(
+                puppetdb_conf,
+                os.path.join(src, 'puppetdb.conf')
+            )
 
     @staticmethod
     def _copy_hiera(dirname, realm):

-- 
To view, visit https://gerrit.wikimedia.org/r/370625
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I525850947910276b938a9aa5f83db860a12d5a24
Gerrit-PatchSet: 1
Gerrit-Project: operations/software/puppet-compiler
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to