INSTALL = getWMBASE() HOST = socket.getfqdn().lower() COUCH = "https://%s/couchdb" % HOST if re.match(r"^vocms0(?:13[689]|14[0123]|16[135]|30[67]|318)\.cern\.ch$", HOST): COUCH = "https://cmsweb.cern.ch/couchdb" elif re.match(r"^vocms0(?:13[12])\.cern\.ch$", HOST): COUCH = "https://cmsweb-testbed.cern.ch/couchdb" elif re.match(r"^vocms0127\.cern\.ch$", HOST): COUCH = "https://cmsweb-dev.cern.ch/couchdb" elif re.match(r"^vocms0126\.cern\.ch$", HOST): COUCH = "https://cmsweb-sec.cern.ch/couchdb" config = ReqMgrConfig.reqMgrConfig(installation=INSTALL, couchurl=COUCH) TEMPLATES = os.path.normpath( os.path.join(INSTALL, '../../../data/templates/WMCore/WebTools')) JAVASCRIPT_PATH = os.path.normpath( os.path.join(INSTALL, '../../../data/javascript')) HTML_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/html')) config.webapp_("reqmgr") config.reqmgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.templates = os.path.join(TEMPLATES, 'RequestManager') config.reqmgr.views.active.reqMgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.views.active.reqMgr.templates = TEMPLATES config.reqmgr.views.active.rest.templates = TEMPLATES
from WMCore.WMInit import getWMBASE import os.path INSTALL = getWMBASE() HOST = socket.getfqdn().lower() COUCH = "https://%s/couchdb" % HOST ADD_MONITOR_FLAG = False if re.match(r"^vocms(?:34|13[689]|140|16[13])\.cern\.ch$", HOST): COUCH = "https://cmsweb.cern.ch/couchdb" elif re.match(r"^vocms(?:13[23])\.cern\.ch$", HOST): COUCH = "https://cmsweb-testbed.cern.ch/couchdb" elif re.match(r"^vocms127\.cern\.ch$", HOST): COUCH = "https://cmsweb-dev.cern.ch/couchdb" config = ReqMgrConfig.reqMgrConfig(installation=INSTALL, couchurl = COUCH, addMonitor = ADD_MONITOR_FLAG) TEMPLATES = os.path.normpath(os.path.join(INSTALL, '../../../data/templates/WMCore/WebTools')) JAVASCRIPT_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/javascript')) HTML_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/html')) config.webapp_("reqmgr") config.reqmgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.templates = os.path.join(TEMPLATES, 'RequestManager') if ADD_MONITOR_FLAG: config.reqmgr.views.active.GlobalMonitor.templates = os.path.join(TEMPLATES, 'GlobalMonitor') config.reqmgr.views.active.GlobalMonitor.javascript = JAVASCRIPT_PATH config.reqmgr.views.active.GlobalMonitor.html = HTML_PATH config.reqmgr.views.active.monitorSvc.templates = TEMPLATES config.reqmgr.views.active.monitorSvc.serviceURL = "local"
from WMCore.WMInit import getWMBASE import os.path INSTALL = getWMBASE() HOST = socket.getfqdn().lower() COUCH = "https://%s/couchdb" % HOST ADD_MONITOR_FLAG = False if re.match(r"^vocms0(?:13[689]|140|16[135]|30[67]|318)\.cern\.ch$", HOST): COUCH = "https://cmsweb.cern.ch/couchdb" elif re.match(r"^vocms0(?:13[12])\.cern\.ch$", HOST): COUCH = "https://cmsweb-testbed.cern.ch/couchdb" elif re.match(r"^vocms0127\.cern\.ch$", HOST): COUCH = "https://cmsweb-dev.cern.ch/couchdb" config = ReqMgrConfig.reqMgrConfig(installation=INSTALL, couchurl = COUCH, addMonitor = ADD_MONITOR_FLAG) TEMPLATES = os.path.normpath(os.path.join(INSTALL, '../../../data/templates/WMCore/WebTools')) JAVASCRIPT_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/javascript')) HTML_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/html')) config.webapp_("reqmgr") config.reqmgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.templates = os.path.join(TEMPLATES, 'RequestManager') if ADD_MONITOR_FLAG: config.reqmgr.views.active.GlobalMonitor.templates = os.path.join(TEMPLATES, 'GlobalMonitor') config.reqmgr.views.active.GlobalMonitor.javascript = JAVASCRIPT_PATH config.reqmgr.views.active.GlobalMonitor.html = HTML_PATH config.reqmgr.views.active.monitorSvc.templates = TEMPLATES config.reqmgr.views.active.monitorSvc.serviceURL = "local"
thread.stack_size(128*1024) INSTALL = getWMBASE() HOST = socket.getfqdn().lower() COUCH = "https://%s/couchdb" % HOST if re.match(r"^vocms0(?:13[689]|143|74[012]|16[135]|30[67]|318)\.cern\.ch$", HOST): COUCH = "https://cmsweb.cern.ch/couchdb" elif re.match(r"^vocms0(?:132|731)\.cern\.ch$", HOST): COUCH = "https://cmsweb-testbed.cern.ch/couchdb" elif re.match(r"^vocms0127\.cern\.ch$", HOST): COUCH = "https://cmsweb-dev.cern.ch/couchdb" elif re.match(r"^vocms0126\.cern\.ch$", HOST): COUCH = "https://cmsweb-sec.cern.ch/couchdb" config = ReqMgrConfig.reqMgrConfig(installation=INSTALL, couchurl = COUCH) TEMPLATES = os.path.normpath(os.path.join(INSTALL, '../../../data/templates/WMCore/WebTools')) JAVASCRIPT_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/javascript')) HTML_PATH = os.path.normpath(os.path.join(INSTALL, '../../../data/html')) config.webapp_("reqmgr") config.reqmgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.templates = os.path.join(TEMPLATES, 'RequestManager') config.reqmgr.views.active.reqMgr.html = os.path.join(HTML_PATH, 'RequestManager') config.reqmgr.views.active.reqMgr.templates = TEMPLATES config.reqmgr.views.active.rest.templates = TEMPLATES config.reqmgr.security_roles.extend(['facops', 'FacOps']) config.component_('SecurityModule')