;time_zone = Europe/Berlin
; Puppetmaster - wird bei 'terraform destroy' verwendet
-;puppet_master = puppetmaster01.pixelpark.com
+;puppet_master = puppetmaster04.pixelpark.com
; Puppetca-Host wird für die Registrierung neu installierter Maschinen bei Puppet
; während 'terraform apply' verwendet
#!/bin/env python3
# -*- coding: utf-8 -*-
-__version__ = '1.3.2'
+__version__ = '1.3.3'
MIN_VERSION_TERRAFORM = '0.12.0'
MAX_VERSION_TERRAFORM = '0.12.99'
cfg_file_rel = os.path.relpath(str(self.cfg_file), str(cur_dir))
default_cfg_file_rel = os.path.relpath(str(default_conf_file), str(cur_dir))
msg = (_(
- "Configuration file {f!r} does not exists. Please copy {d!r} to {f!r} and "
+ "Configuration file {f!r} does not exists.\nPlease copy {d!r} to {f!r} and "
"fill out all necessary entries, e.g. the passwords and API keys.").format(
f=cfg_file_rel, d=default_cfg_file_rel))
LOG.error(msg)
from .xlate import XLATOR
-__version__ = '2.8.8'
+__version__ = '2.8.9'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
self.config = config
self.script_dir = self.base_dir.joinpath('postinstall-scripts')
+ LOG.debug(_("Directory for postinstall scripts: {!r}").format(str(self.script_dir)))
+ if not self.script_dir.exists():
+ msg = _("Directory for postinstall scripts {!r} does not exists.").format(
+ str(self.script_dir))
+ raise ExpectedHandlerError(msg)
+ if not self.script_dir.is_dir():
+ msg = _("Path {!r} for postinstall scripts exists, but is not a directory.").format(
+ str(self.script_dir))
+ raise ExpectedHandlerError(msg)
if initialized:
self.initialized = True