]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Adding config of nsrports if backup is ebabled.
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Mar 2021 14:08:45 +0000 (15:08 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Mar 2021 14:08:45 +0000 (15:08 +0100)
lib/cr_tf/handler.py

index 8a3b9f69b94f5c4297063f542aa62596b67add81..9397f45598fabeb96347eaa87be39787685cc0af 100644 (file)
@@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk
 
 from .xlate import XLATOR
 
-__version__ = '3.4.5'
+__version__ = '3.4.6'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -2647,9 +2647,11 @@ class CreateTerraformHandler(BaseHandler):
                 "if [ ! -f /nsr/res/servers ] ; then "
                 "echo 'legato01.pixelpark.com' > /nsr/res/servers; fi")
             commands.append("systemctl start networker.service; sleep 2")
+            commands.append("nsrports -S 7937-7999; sleep 2")
             commands.append("systemctl stop networker.service; sleep 2")
             commands.append(
                 "systemctl enable networker.service; systemctl start networker.service; sleep 2")
+            commands.append("nsrports; sleep 2")
         else:
             commands.append("systemctl disable networker.service")