Пример #1
0
 def __init__(self):
   self.hardware = {}
   osdisks = self.osdisks()
   self.hardware['mounts'] = osdisks
   otherInfo = Facter().facterInfo()
   self.hardware.update(otherInfo)
   pass
Пример #2
0
 def _cache_hardware_info(self):
     """
 Creating cache with hardware information
 """
     logger.info("Initializing host system information.")
     self._hardware = {'mounts': self.osdisks()}
     self._hardware.update(Facter(self.config).facterInfo())
     logger.info("Host system information: %s", self._hardware)
Пример #3
0
    def __init__(self):
        self.hardware = {}
        self.hardware['mounts'] = self.osdisks()
        self.hardware['mounts_grenplum'] = self.osdisks_greenplum()
        self.hardware['osparams'] = self.osparams()
        self.hardware['osversion'] = self.osversion()
        self.hardware['user_groups'] = self.groups()

        otherInfo = Facter().facterInfo()
        self.hardware.update(otherInfo)
        pass
Пример #4
0
def getData (args, options):
    # Get Data and prepare JsonDump
    facter = Facter(args)
    facter.separator = options.delimiter
    return facter.pieces()
Пример #5
0
 def __init__(self, config):
     self.hardware = {'mounts': Hardware.osdisks()}
     self.config = config
     self.hardware.update(Facter(self.config).facterInfo())
Пример #6
0
 def __init__(self):
     self.hardware = {}
     self.hardware['mounts'] = Hardware.osdisks()
     self.hardware.update(Facter().facterInfo())
     pass
Пример #7
0
 def __init__(self, config):
     logger.info("Initializing host system information.")
     self.hardware = {'mounts': Hardware.osdisks()}
     self.config = config
     self.hardware.update(Facter(self.config).facterInfo())
     logger.info("Host system information: %s", self.hardware)
Пример #8
0
 def __init__(self):
     self.hardware = {'mounts': Hardware.osdisks()}
     self.hardware.update(Facter().facterInfo())