from .xlate import XLATOR
-__version__ = '0.5.10'
+__version__ = '0.5.11'
LOG = logging.getLogger(__name__)
loc=str(local_rc_file), rem=str(remote_rc_file)))
self.ensure_remote_file(local_rc_file, remote_rc_file, check_parent=False)
+ # -------------------------------------------------------------------------
+ def ensure_logrotate_files(self):
+
+ files_dir = self.base_dir / 'files'
+ docroot = self.config.cobbler_ws_docroot / self.config.cobbler_ws_rel_filesdir
+ remote_dir = docroot / self.config.system_status
+
+ LOG.info(_("Ensuring currentness of logrotate files."))
+
+ for local_file in files_dir.glob('logrotate*'):
+ remote_file = remote_dir / local_file.name
+ LOG.debug(_("Ensuring {loc!r} => {rem!r}.").format(
+ loc=str(local_file), rem=str(remote_file)))
+ self.ensure_remote_file(local_file, remote_file, check_parent=False)
+
# -------------------------------------------------------------------------
def ensure_create_motd(self):
from .xlate import XLATOR
-__version__ = '1.6.5'
+__version__ = '1.6.6'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
self.cobbler.ensure_bashrc()
self.cobbler.ensure_create_motd()
self.cobbler.ensure_postfix_files()
+ self.cobbler.ensure_logrotate_files()
self.vsphere.get_about()
self.vsphere.get_clusters()