def __init__(self, lfnBase, outputMods): Configuration.__init__(self) for out in outputMods: setattr(self, out, ConfigSection("output")) getattr(self, out)._internal_name = "output" getattr(self, out).lfnBase = lfnBase #'/store/temp/user/mmascher/RelValProdTTbar/mc/v6' StepConfiguration.outputMods = outputMods
def __init__(self, lfnBase, outputMods): Configuration.__init__(self) for out in outputMods: setattr(self, out, ConfigSection("output")) getattr(self, out)._internal_name = "output" getattr(self,out).lfnBase = lfnBase #'/store/temp/user/mmascher/RelValProdTTbar/mc/v6' StepConfiguration.outputMods = outputMods
def __init__(self, phedexdb=None, nthreads=5, port=9001): """ :arg str phedexdb: Location of PhEDEx database configuration, "module.object". Defaults to "PhEDExAuth.dbparam". :arg integer nthreads: Number of server threads to create. :arg integer port: Server port.""" Configuration.__init__(self) main = self.section_("main") srv = main.section_("server") srv.thread_pool = nthreads srv.socket_host = "127.0.0.1" main.application = "overviewdb" main.port = port main.index = None app = self.section_("overviewdb") app.admin = "*****@*****.**" app.description = "CMS Overview database data source" app.title = "CMS Overview Database" views = self.section_("views") phedex = views.section_("phedex") phedex.object = "Overview.DataDB.PhEDEx" phedex.db = phedexdb or "PhEDExAuth.dbparam"
def __init__(self, db=None, authkey=None, nthreads=5, port=8051): """ :arg str db: Location of database configuration, "module.object". Defaults to "SiteDBAuth.dbparam". :arg str authkey: Location of wmcore security header authentication key. :arg integer nthreads: Number of server threads to create. :arg integer port: Server port.""" Configuration.__init__(self) main = self.section_('main') srv = main.section_('server') srv.thread_pool = nthreads main.application = 'sitedb' main.port = port main.index = 'ui' main.authz_defaults = {'role': None, 'group': None, 'site': None} sec = main.section_('tools').section_("cms_auth") sec.key_file = authkey app = self.section_('sitedb') app.admin = '*****@*****.**' app.description = 'A database of sites known to CMS' app.title = 'CMS SiteDB' views = self.section_('views') ui = views.section_('ui') ui.object = 'SiteDB.FrontPage.FrontPage' data = views.section_('data') data.object = 'SiteDB.Data.Data' data.db = db or 'SiteDBAuth.dbparam'
def __init__(self, db = None, authkey = None, nthreads = 5, port = 8308): """ :arg str db: Location of database configuration, "module.object". Defaults to "t0auth.dbparam". :arg str authkey: Location of wmcore security header authentication key. :arg integer nthreads: Number of server threads to create. :arg integer port: Server port.""" Configuration.__init__(self) main = self.section_('main') srv = main.section_('server') srv.thread_pool = nthreads main.application = 't0wmadatasvc' main.port = port main.index = 'data' main.authz_defaults = { 'role': None, 'group': None, 'site': None } sec = main.section_('tools').section_("cms_auth") sec.key_file = authkey app = self.section_('t0wmadatasvc') app.admin = '*****@*****.**' app.description = 'Access to the CMS Tier0 database' app.title = 'CMS T0 WMAgent Data Service' views = self.section_('views') data = views.section_('data') data.object = 'T0WmaDataSvc.Data.Data' data.db = db or 't0auth.dbparam'
def __init__(self, db = None, authkey = None, nthreads = 5, port = 8051): """ :arg str db: Location of database configuration, "module.object". Defaults to "SiteDBAuth.dbparam". :arg str authkey: Location of wmcore security header authentication key. :arg integer nthreads: Number of server threads to create. :arg integer port: Server port.""" Configuration.__init__(self) main = self.section_('main') srv = main.section_('server') srv.thread_pool = nthreads main.application = 'sitedb' main.port = port main.index = 'ui' main.authz_defaults = { 'role': None, 'group': None, 'site': None } sec = main.section_('tools').section_("cms_auth") sec.key_file = authkey app = self.section_('sitedb') app.admin = '*****@*****.**' app.description = 'A database of sites known to CMS' app.title = 'CMS SiteDB' views = self.section_('views') ui = views.section_('ui') ui.object = 'SiteDB.FrontPage.FrontPage' data = views.section_('data') data.object = 'SiteDB.Data.Data' data.db = db or 'SiteDBAuth.dbparam'
def __init__(self): BaseConfiguration.__init__(self) self._internal_sections.append("Agent") self.Agent = ConfigSection("Agent") self.Agent.agentName = None self.Agent.teamName = None self.Agent.hostName = None self.Agent.contact = None
def __init__(self, authkey=None, key=None, cert=None, nthreads=5, port=9000): """ :arg str key: X509 key, usually a proxy. :arg str cert: X509 certificate, usually a proxy. :arg str authkey: Location of wmcore security header authentication key. :arg integer nthreads: Number of server threads to create. :arg integer port: Server port.""" Configuration.__init__(self) main = self.section_("main") srv = main.section_("server") srv.thread_pool = nthreads main.application = "overview" main.port = port main.index = "ui" main.authz_defaults = {"role": None, "group": None, "site": None} sec = main.section_("tools").section_("cms_auth") sec.key_file = authkey app = self.section_("overview") app.admin = "*****@*****.**" app.description = "CMS computing monitoring service" app.title = "CMS Overview" app.debug = {} app.x509key = key app.x509cert = cert app.x509cadir = "/etc/grid-security/certificates" app.sls = "http://sls.cern.ch/sls/%s.php" app.lrf = "http://lsf-rrd.cern.ch/lrf-lsf/info.php" app.lemon = "http://lemonweb.cern.ch/lemon-%s/%s.php" app.phedex = "https://cmsweb.cern.ch/phedex" app.phedexinst = ["prod", "debug", "test"] app.sitedb = "https://cmsweb.cern.ch/sitedb" app.world = os.environ["NATURALEARTHDATA_ROOT"] + "/data" app.cafdata = [ "alca:alca", "comm:^(/calo/|/minimumbias/|/monitor/|/testenables/" "|/hltdebug/|/hcalhpdnoise/|/randomtriggers/" "|/test/commissioning|/calprivate|/barrelmuon/" "|/endcapsmuon/|/minbias/|/[^/]*(cosmic|beamhalo)" "|/global[^/]*-A/)", "phys:^" ] views = self.section_("views") ui = views.section_("ui") ui.object = "Overview.FrontPage.FrontPage" views.section_("data").object = "Overview.Data.Data" views.section_("image").object = "Overview.Data.Image"
def __init__(self, model=None): Configuration.__init__(self) self.component_('Webtools') self.Webtools.application = 'UnitTests' self.Webtools.log_screen = False self.Webtools.access_file = '/tmp/webtools/log_access' self.Webtools.error_file = '/tmp/webtools/log_error' self.Webtools.port = 8888 self.Webtools.host = "localhost" self.Webtools.expires = 300 self.component_('UnitTests') self.UnitTests.title = 'CMS WMCore/WebTools Unit Tests' self.UnitTests.description = 'Dummy server for the running of unit tests' self.UnitTests.admin ="UnitTestAdmin" self.UnitTests.templates = "/tmp" self.UnitTests.section_('views') active = self.UnitTests.views.section_('active') active.section_('rest') active.rest.application = 'UnitTestRESTApp' active.rest.object = 'WMCore.WebTools.RESTApi' active.rest.templates = '/tmp' active.rest.section_('database') active.rest.database.connectUrl = 'sqlite://' #active.rest.database = 'sqlite:////tmp/resttest.db' active.rest.database.socket = None active.rest.section_('model') active.rest.model.object = model or 'WMCore.WebTools.RESTModel' active.rest.section_('formatter') active.rest.formatter.object = 'WMCore.WebTools.RESTFormatter' active.rest.formatter.templates = '/tmp' #WARNING: need is not actual config - if cherrypy is started by Root.py #This will handled automatically - added here just for DummyModel test. active.rest.default_expires = self.Webtools.expires