]> Frank Brehm's Git Trees - pixelpark/admin-tools.git/commitdiff
Adding etc/import-pdnsdata.ini.default
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 14 Jul 2017 10:26:09 +0000 (12:26 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 14 Jul 2017 10:26:09 +0000 (12:26 +0200)
etc/import-pdnsdata.ini.default [new file with mode: 0644]
pp_lib/import_pdnsdata.py

diff --git a/etc/import-pdnsdata.ini.default b/etc/import-pdnsdata.ini.default
new file mode 100644 (file)
index 0000000..d4d186c
--- /dev/null
@@ -0,0 +1,39 @@
+# Template for import-pdnsdata.ini
+
+[src_db]
+
+# Hostname of the old MySQL server (Default: mysql-pp06.pixelpark.com)
+#host = mysql-pp06.pixelpark.com
+
+# TCP-Portnumber of the old MySQL server (Default: 3306)
+#port = 3306
+
+# MySQL database to use (Default: pdns)
+#schema = pdns
+
+# MySQL user (Default: pdns)
+#user = pdns
+
+# Password of the MySQL user (no defult)
+#password = 'changeme'
+
+[tgt_db]
+
+# Hostname of the PostgreSQL server to import the data to (Default: systemshare.pixelpark.com)
+#host = systemshare.pixelpark.com
+
+# TCP-Portnumber of the target PostgreSQL server (Default: 5432)
+#port = 5432
+
+# The target PostgreSQL database to use (Default: pdns)
+#schema = pdns
+
+# PostgreSQL user (Default: pdns)
+#user = pdns
+
+# Password of the PostgreSQL user (no defult)
+#password = 'changeme'
+
+
+
+# vim: filetype=dosini
index de5fa6484f331b8b11ba9b377cf4fc1b57ec6c39..a1b9982df64293e29f851ef2998c37db80c99f9d 100644 (file)
@@ -29,7 +29,7 @@ from .common import pp
 
 from .cfg_app import PpCfgAppError, PpConfigApplication
 
-__version__ = '0.5.1'
+__version__ = '0.5.2'
 LOG = logging.getLogger(__name__)
 
 # =============================================================================
@@ -284,7 +284,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got domains:\n{}".format(pp(results)))
 
                 for result in results:
@@ -340,7 +340,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got cryptokeys:\n{}".format(pp(results)))
 
                 if not results:
@@ -408,7 +408,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got domainmetadata:\n{}".format(pp(results)))
 
                 if not results:
@@ -469,7 +469,6 @@ class ImportPdnsdataApp(PpConfigApplication):
         if self.verbose > 1:
             LOG.debug("Target SQL:\n{}".format(tgt_sql))
 
-
         with self.tgt_connection.cursor() as tgt_cursor:
             with self.src_connection.cursor() as src_cursor:
 
@@ -477,7 +476,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got records:\n{}".format(pp(results)))
 
                 if not results:
@@ -544,7 +543,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got supermasters:\n{}".format(pp(results)))
 
                 if not results:
@@ -589,7 +588,7 @@ class ImportPdnsdataApp(PpConfigApplication):
                 src_cursor.execute(src_sql)
                 results = src_cursor.fetchall()
 
-                if self.verbose > 2:
+                if self.verbose > 3:
                     LOG.debug("Got tsigkeys:\n{}".format(pp(results)))
 
                 if not results: