from .ldap import LdapConnectionInfo, LdapConnectionDict
from .timeouts import ConfigTimeouts
-__version__ = '3.2.0'
+__version__ = '3.3.0'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
self.cobbler_profile_given = False
self.template_name_given = False
+ self._vm_has_docs = False
+
self._root_password = self.default_root_password
self.private_ssh_key = None
"""The password of the RHSM user."""
return self._rhsm_pwd
+ # -------------------------------------------------------------------------
+ @property
+ def vm_has_docs(self):
+ """Flag, that the RPM packages should be installed with documentation and man pages."""
+ return self._vm_has_docs
+
# -------------------------------------------------------------------------
def as_dict(self, short=True):
"""
res['rhsm_user'] = self.rhsm_user
res['system_ks'] = self.system_ks
res['snippets_dir'] = self.snippets_dir
+ res['vm_has_docs'] = self.vm_has_docs
res['cobbler_distros'] = {}
for distro in self.cobbler_distros.keys():
import ipaddress
# Third party modules
-from fb_tools.common import pp
+from fb_tools.common import pp, to_bool
# Own modules
from .. import DEFAULT_TIMEOUT, MAX_TIMEOUT
re_swap_space = re.compile(r'^\s*swap[-_]?space(?:[-_]?mb)?\s*$', re.IGNORECASE)
re_rhsm_user = re.compile(r'^\s*rhsm[-_]?user\s*$', re.IGNORECASE)
re_rhsm_pwd = re.compile(r'^\s*rhsm[-_]?(?:pwd|password)\s*$', re.IGNORECASE)
+ re_has_docs = re.compile(
+ r'^\s*(?:vm[-_]?)?has[-_]?doc(?:s|umentation)?\s*$', re.IGNORECASE)
for key in section.keys():
value = section[key]
if re_rhsm_pwd.match(key):
self._rhsm_pwd = value
continue
+ if re_has_docs.match(key):
+ self._vm_has_docs = to_bool(value)
+ continue
return