Beispiel #1
0
 def __init__(self, config, logger):
     """
     Constructor
     """
     self.logger = logger
     self.config = config
     self.api = config.api
     self.distros = config.distros()
     self.profiles = config.profiles()
     self.systems = config.systems()
     self.settings = config.settings()
     self.repos = config.repos()
     self.templar = templar.Templar(config)
     self.settings_file = utils.dhcpconf_location(self.api)
Beispiel #2
0
 def __init__(self, collection_mgr, logger):
     """
     Constructor
     """
     self.logger = logger
     self.collection_mgr = collection_mgr
     self.api = collection_mgr.api
     self.distros = collection_mgr.distros()
     self.profiles = collection_mgr.profiles()
     self.systems = collection_mgr.systems()
     self.settings = collection_mgr.settings()
     self.repos = collection_mgr.repos()
     self.templar = templar.Templar(collection_mgr)
     self.settings_file = utils.dhcpconf_location(self.api)
Beispiel #3
0
 def __init__(self, collection_mgr, logger):
     """
     Constructor
     """
     self.logger = logger
     self.collection_mgr = collection_mgr
     self.api = collection_mgr.api
     self.distros = collection_mgr.distros()
     self.profiles = collection_mgr.profiles()
     self.systems = collection_mgr.systems()
     self.settings = collection_mgr.settings()
     self.repos = collection_mgr.repos()
     self.templar = templar.Templar(collection_mgr)
     self.settings_file = utils.dhcpconf_location(self.api)
Beispiel #4
0
 def __init__(self, config, logger):
     """
     Constructor
     """
     self.logger = logger
     self.config = config
     self.api = config.api
     self.distros = config.distros()
     self.profiles = config.profiles()
     self.systems = config.systems()
     self.settings = config.settings()
     self.repos = config.repos()
     self.templar = templar.Templar(config)
     self.settings_file = utils.dhcpconf_location(self.api)