Example #1
0
 def __init__(self, *args, **kwargs):
     # pylint: disable-msg=W0142
     super(CondorConfiguration, self).__init__(*args, **kwargs)
     self.log('CondorConfiguration.__init__ started')
     self.config_section = "Condor"
     self.options = {'condor_location':
                         configfile.Option(name='condor_location',
                                           default_value=utilities.get_condor_location(),
                                           mapping='OSG_CONDOR_LOCATION'),
                     'condor_config':
                         configfile.Option(name='condor_config',
                                           required=configfile.Option.OPTIONAL,
                                           default_value=utilities.get_condor_config(),
                                           mapping='OSG_CONDOR_CONFIG'),
                     'job_contact':
                         configfile.Option(name='job_contact',
                                           mapping='OSG_JOB_CONTACT'),
                     'util_contact':
                         configfile.Option(name='util_contact',
                                           mapping='OSG_UTIL_CONTACT'),
                     'accept_limited':
                         configfile.Option(name='accept_limited',
                                           required=configfile.Option.OPTIONAL,
                                           opt_type=bool,
                                           default_value=False)}
     self._set_default = True
     self.condor_bin_location = None
     self.log('CondorConfiguration.__init__ completed')
Example #2
0
 def __init__(self, *args, **kwargs):
     # pylint: disable-msg=W0142
     super(CondorConfiguration, self).__init__(*args, **kwargs)
     self.log('CondorConfiguration.__init__ started')
     self.config_section = "Condor"
     self.options = {
         'condor_location':
         configfile.Option(name='condor_location',
                           default_value=utilities.get_condor_location(),
                           mapping='OSG_CONDOR_LOCATION'),
         'condor_config':
         configfile.Option(name='condor_config',
                           required=configfile.Option.OPTIONAL,
                           default_value=utilities.get_condor_config(),
                           mapping='OSG_CONDOR_CONFIG'),
         'job_contact':
         configfile.Option(name='job_contact', mapping='OSG_JOB_CONTACT'),
         'util_contact':
         configfile.Option(name='util_contact', mapping='OSG_UTIL_CONTACT'),
         'accept_limited':
         configfile.Option(name='accept_limited',
                           required=configfile.Option.OPTIONAL,
                           opt_type=bool,
                           default_value=False)
     }
     self._set_default = True
     self.condor_bin_location = None
     self.log('CondorConfiguration.__init__ completed')
Example #3
0
 def __init__(self, *args, **kwargs):
     # pylint: disable-msg=W0142
     super(ManagedForkConfiguration, self).__init__(*args, **kwargs)
     self.log('ManagedForkConfiguration.__init__ started')
     # dictionary to hold information about options
     self.options = {'condor_location':
                         configfile.Option(name='condor_location',
                                           required=configfile.Option.OPTIONAL,
                                           value=utilities.get_condor_location(),
                                           mapping='OSG_CONDOR_LOCATION'),
                     'condor_config':
                         configfile.Option(name='condor_config',
                                           required=configfile.Option.OPTIONAL,
                                           value=utilities.get_condor_config(),
                                           mapping='OSG_CONDOR_CONFIG'),
                     'enabled':
                         configfile.Option(name='enabled',
                                           required=configfile.Option.OPTIONAL,
                                           opt_type=bool,
                                           default_value=False,
                                           mapping='OSG_MANAGEDFORK'),
                     'accept_limited':
                         configfile.Option(name='accept_limited',
                                           required=configfile.Option.OPTIONAL,
                                           opt_type=bool,
                                           default_value=False)}
     self.section_present = False
     self.config_section = "Managed Fork"
     self.log('ManagedForkConfiguration.__init__ completed')
Example #4
0
 def __init__(self, *args, **kwargs):
     # pylint: disable-msg=W0142
     super(ManagedForkConfiguration, self).__init__(*args, **kwargs)
     self.log('ManagedForkConfiguration.__init__ started')
     # dictionary to hold information about options
     self.options = {
         'condor_location':
         configfile.Option(name='condor_location',
                           required=configfile.Option.OPTIONAL,
                           value=utilities.get_condor_location(),
                           mapping='OSG_CONDOR_LOCATION'),
         'condor_config':
         configfile.Option(name='condor_config',
                           required=configfile.Option.OPTIONAL,
                           value=utilities.get_condor_config(),
                           mapping='OSG_CONDOR_CONFIG'),
         'enabled':
         configfile.Option(name='enabled',
                           required=configfile.Option.OPTIONAL,
                           opt_type=bool,
                           default_value=False,
                           mapping='OSG_MANAGEDFORK'),
         'accept_limited':
         configfile.Option(name='accept_limited',
                           required=configfile.Option.OPTIONAL,
                           opt_type=bool,
                           default_value=False)
     }
     self.section_present = False
     self.config_section = "Managed Fork"
     self.log('ManagedForkConfiguration.__init__ completed')
Example #5
0
    def get_condor_location(configuration):
        """
        Get the condor location based on the information in a configParser
        object (configuration argument) and environment variables if possible
        """

        location = configfile.Option(name='condor_location',
                                     default_value=utilities.get_condor_location())
        configfile.get_option(configuration, 'Condor', location)
        return location.value
Example #6
0
    def get_condor_location(configuration):
        """
        Get the condor location based on the information in a configParser
        object (configuration argument) and environment variables if possible
        """

        location = configfile.Option(
            name='condor_location',
            default_value=utilities.get_condor_location())
        configfile.get_option(configuration, 'Condor', location)
        return location.value
Example #7
0
 def __init__(self, *args, **kwargs):
     # pylint: disable-msg=W0142
     super(CondorConfiguration, self).__init__(*args, **kwargs)
     self.logger = logging.getLogger(__name__)
     self.log('CondorConfiguration.__init__ started')
     self.config_section = "Condor"
     self.options = {
         'condor_location':
         configfile.Option(name='condor_location',
                           default_value=utilities.get_condor_location(),
                           mapping='OSG_CONDOR_LOCATION'),
         'condor_config':
         configfile.Option(name='condor_config',
                           required=configfile.Option.OPTIONAL,
                           default_value=utilities.get_condor_config(),
                           mapping='OSG_CONDOR_CONFIG')
     }
     self.condor_bin_location = None
     self.log('CondorConfiguration.__init__ completed')