Skip to content

Commit

Permalink
fix reqmgr service url
Browse files Browse the repository at this point in the history
From: Seangchan Ryu <[email protected]>


git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/Infrastructure/trunk@13928 4525493e-7705-40b1-a816-d608a930855b
  • Loading branch information
ticoann authored and evansde committed Sep 19, 2011
1 parent df6d44b commit d98e1e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion reqmgr/ReqMgrConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@

HOST = socket.getfqdn().lower()
COUCH = "https://%s/couchdb" % HOST
REQMGR_SVC = "https://%s/reqmgr/rest" % HOST

if re.match(r"^vocms(?:10[67]|13[689]|140)\.cern\.ch$", HOST):
COUCH = "https://cmsweb.cern.ch/couchdb"
REQMGR_SVC = "https://cmsweb.cern.ch/reqmgr/rest"
elif re.match(r"^vocms(?:13[23])\.cern\.ch$", HOST):
COUCH = "https://cmsweb-testbed.cern.ch/couchdb"
REQMGR_SVC = "https://cmsweb-testbed.cern.ch/reqmgr/rest"
elif re.match(r"^vocms127\.cern\.ch$", HOST):
COUCH = "https://cmsweb-dev.cern.ch/couchdb"
REQMGR_SVC = "https://cmsweb-dev.cern.ch/reqmgr/rest"

config = ReqMgrConfig.reqMgrConfig(installation=INSTALL,
couchurl = COUCH)
Expand All @@ -33,7 +37,7 @@
config.reqmgr.views.active.reqMgr.templates = TEMPLATES
config.reqmgr.views.active.rest.templates = TEMPLATES
config.reqmgr.views.active.monitorSvc.templates = TEMPLATES
config.reqmgr.views.active.monitorSvc.serviceURL = "https://%s/reqmgr/rest" % HOST
config.reqmgr.views.active.monitorSvc.serviceURL = REQMGR_SVC
config.reqmgr.security_roles.extend(['facops', 'FacOps'])

config.component_('SecurityModule')
Expand Down

0 comments on commit d98e1e5

Please sign in to comment.