from .xlate import XLATOR
-__version__ = '0.5.9'
+__version__ = '0.5.10'
LOG = logging.getLogger(__name__)
docroot = self.config.cobbler_ws_docroot / self.config.cobbler_ws_rel_filesdir
remote_dir = docroot / self.config.system_status / 'repos'
- LOG.info(_("Ensuring currentness of snippets below {!r}.").format(
- str(self.config.snippets_dir)))
+ LOG.info(_("Ensuring currentness of repo files below {!r}.").format(str(files_dir)))
for local_repo_dir in files_dir.glob('repos-*'):
if not local_repo_dir.is_dir():
self.ensure_remote_directory(remote_dir_os)
for local_repo_file in local_repo_dir.glob('*.repo'):
remote_file = remote_dir_os / local_repo_file.name
- self.ensure_remote_file(local_repo_file, remote_file)
+ self.ensure_remote_file(local_repo_file, remote_file, check_parent=False)
+
+ LOG.debug(_("Finished with repo files."))
+
+ # -------------------------------------------------------------------------
+ def ensure_postfix_files(self):
+
+ files_dir = self.base_dir / 'files' / 'postfix'
+ docroot = self.config.cobbler_ws_docroot / self.config.cobbler_ws_rel_filesdir
+ remote_dir = docroot / self.config.system_status / 'postfix'
+
+ LOG.info(_("Ensuring currentness of postfix files below {!r}.").format(str(files_dir)))
+
+ self.ensure_remote_directory(remote_dir)
+ for local_file in files_dir.('*'):
+ remote_file = remote_dir / local_file.name
+ self.ensure_remote_file(local_file, remote_file, check_parent=False)
+
+ LOG.debug(_("Finished with postfix files."))
# -------------------------------------------------------------------------
def get_dhcp_ip(self, mac_address):
from .xlate import XLATOR
-__version__ = '1.6.4'
+__version__ = '1.6.5'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
self.cobbler.ensure_repo_files()
self.cobbler.ensure_bashrc()
self.cobbler.ensure_create_motd()
+ self.cobbler.ensure_postfix_files()
self.vsphere.get_about()
self.vsphere.get_clusters()