예제 #1
0
    def __init__(self):
        OsObjectManager.__init__(self)

        # Cache this for later
        try:
            self.passdata = pwd.getpwnam('apache')
        except KeyError:
            self.passdata = pwd.getpwnam(os.getenv('USER'))

        self._cm = ConfigManager()
예제 #2
0
    def __init__(self):
        OsObjectManager.__init__(self)

        # Cache this for later
        try:
            self.passdata = pwd.getpwnam('apache')
        except KeyError:
            self.passdata = pwd.getpwnam(os.getenv('USER'))

        self.hardwareProfileDbApi = HardwareProfileDbApi()
        self.softwareProfileDbApi = SoftwareProfileDbApi()

        self._nodeApi = nodeApi.NodeApi()

        self._cm = ConfigManager()
예제 #3
0
 def __init__(self):
     OsObjectManager.__init__(self)
예제 #4
0
    def __init__(self):
        OsObjectManager.__init__(self)

        # Use distribution version to determine whether or not to use systemd
        # instead of sysvinit scripts to manage services.
        self._use_systemctl = int(platform.dist()[1].split('.', 1)[0]) >= 7
예제 #5
0
파일: dnsManager.py 프로젝트: ilumb/tortuga
    def __init__(self):
        OsObjectManager.__init__(self)

        self._osInfo = osHelper.getOsInfo()
예제 #6
0
    def __init__(self):
        OsObjectManager.__init__(self)

        self._dhcpReqRegex = re.compile(
            r': BOOTP\/DHCP, Request from (.[^\s]*) ')
예제 #7
0
    def __init__(self):
        OsObjectManager.__init__(self)

        self._cm = ConfigManager()