From e43d96cf07a706a8201052a78b505f0153268846 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 17 Oct 2022 08:52:15 +0200 Subject: [PATCH] Minor changes --- lib/pp_lib/barracuda_sync_app.py | 4 +++- lib/pp_lib/config_named_app.py | 4 +++- lib/pp_lib/deploy_zones_from_pdns.py | 4 +++- lib/pp_lib/dnsui_users.py | 4 +++- lib/pp_lib/import_pdnsdata.py | 4 +++- lib/pp_lib/mk_home_app.py | 4 +++- lib/pp_lib/quota_check.py | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/pp_lib/barracuda_sync_app.py b/lib/pp_lib/barracuda_sync_app.py index 1ea004f..ec4444b 100644 --- a/lib/pp_lib/barracuda_sync_app.py +++ b/lib/pp_lib/barracuda_sync_app.py @@ -30,7 +30,7 @@ from .ldap_app import PpLdapAppError, PpLdapApplication from .mailaddress import MailAddress -__version__ = '0.5.0' +__version__ = '0.5.1' LOG = logging.getLogger(__name__) @@ -46,6 +46,8 @@ class PpBarracudaSyncApp(PpLdapApplication): LDAP entries used by Barracuda to ensure the existence of aliases. """ + show_simulate_option = True + default_barracuda_base_dn = 'ou=barracuda,ou=Applications,o=Pixelpark,o=isp' postfix_config_dir = os.sep + os.path.join('etc', 'postfix') postfix_maps_dir = os.path.join(postfix_config_dir, 'maps') diff --git a/lib/pp_lib/config_named_app.py b/lib/pp_lib/config_named_app.py index 9ec3133..4d60539 100644 --- a/lib/pp_lib/config_named_app.py +++ b/lib/pp_lib/config_named_app.py @@ -41,7 +41,7 @@ from .cfg_app import PpCfgAppError, PpConfigApplication from .pidfile import PidFileError, PidFile -__version__ = '0.7.4' +__version__ = '0.7.5' LOG = logging.getLogger(__name__) @@ -56,6 +56,8 @@ class PpConfigNamedApp(PpConfigApplication): Class for a application 'config-named' for configuring the BIND named daemon. """ + show_simulate_option = True + default_pidfile = '/run/dns-deploy-zones.pid' default_pdns_api_host = 'systemshare.pixelpark.com' diff --git a/lib/pp_lib/deploy_zones_from_pdns.py b/lib/pp_lib/deploy_zones_from_pdns.py index d189431..824d178 100644 --- a/lib/pp_lib/deploy_zones_from_pdns.py +++ b/lib/pp_lib/deploy_zones_from_pdns.py @@ -37,7 +37,7 @@ from .pdns_app import PpPDNSAppError, PpPDNSApplication from .pidfile import PidFileError, PidFile -__version__ = '0.5.5' +__version__ = '0.5.6' LOG = logging.getLogger(__name__) @@ -53,6 +53,8 @@ class PpDeployZonesApp(PpPDNSApplication): of the BIND named daemon. """ + show_simulate_option = True + default_pidfile = '/run/dns-deploy-zones.pid' default_named_conf_dir = '/etc' diff --git a/lib/pp_lib/dnsui_users.py b/lib/pp_lib/dnsui_users.py index 1cb0de6..162f02b 100644 --- a/lib/pp_lib/dnsui_users.py +++ b/lib/pp_lib/dnsui_users.py @@ -26,7 +26,7 @@ from fb_tools.common import pp from .ldap_app import PpLdapAppError, PpLdapApplication -__version__ = '0.4.6' +__version__ = '0.4.7' LOG = logging.getLogger(__name__) @@ -42,6 +42,8 @@ class DnsuiUsersApp(PpLdapApplication): are existing and have administrator access. """ + show_simulate_option = True + default_admin_group = "cn=Administratoren Pixelpark Berlin" # DB data diff --git a/lib/pp_lib/import_pdnsdata.py b/lib/pp_lib/import_pdnsdata.py index b5d65b9..5bcacf7 100644 --- a/lib/pp_lib/import_pdnsdata.py +++ b/lib/pp_lib/import_pdnsdata.py @@ -30,7 +30,7 @@ from .cfg_app import PpCfgAppError, PpConfigApplication from .pdns_record import PdnsSoaData -__version__ = '0.10.4' +__version__ = '0.10.5' LOG = logging.getLogger(__name__) # ============================================================================= @@ -43,6 +43,8 @@ class ImportPdnsdataApp(PpConfigApplication): Application class for the 'import-pdnsdata'-Application. """ + show_simulate_option = True + # Source DB data default_src_db_host = 'mysql-pp06.pixelpark.com' default_src_db_port = 3306 diff --git a/lib/pp_lib/mk_home_app.py b/lib/pp_lib/mk_home_app.py index 4dbadbc..99200d4 100644 --- a/lib/pp_lib/mk_home_app.py +++ b/lib/pp_lib/mk_home_app.py @@ -27,7 +27,7 @@ from fb_tools.common import pp from .ldap_app import PpLdapAppError, PpLdapApplication -__version__ = '0.6.0' +__version__ = '0.6.1' LOG = logging.getLogger(__name__) @@ -43,6 +43,8 @@ class PpMkHomeApp(PpLdapApplication): * all LDAP users having a valid numeric UID (different to 999999999) """ + show_simulate_option = True + default_initial_uid = 999999999 # /mnt/nfs default_chroot_homedir = os.sep + os.path.join('mnt', 'nfs') diff --git a/lib/pp_lib/quota_check.py b/lib/pp_lib/quota_check.py index 9ad82be..5a3eba2 100644 --- a/lib/pp_lib/quota_check.py +++ b/lib/pp_lib/quota_check.py @@ -36,7 +36,7 @@ from .common import pp, to_str from .homes_admin import PpHomesAdminError, PpHomesAdminApp -__version__ = '0.6.3' +__version__ = '0.6.4' LOG = logging.getLogger(__name__) ZERO = datetime.timedelta(0) @@ -70,6 +70,8 @@ class PpQuotaCheckApp(PpHomesAdminApp): of the home share on the NFS server. """ + show_simulate_option = True + default_quota_kb = 300 * 1024 # /var/lib/quota-check -- 2.39.5