Bug 796708

Summary: RFE: Multiple server support in csprocessor.ini and csprocessor.cfg
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-07 01:29:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 799821    

Description Joshua Wulf 2012-02-23 14:28:10 UTC
Zanata-style:

~/.config/csprocessor.ini fragment:

[servers]
production.url=http://someurl
production.apikey=someapikey

test.url=http://testurl
test.apikey=someapikey


Then, when a csprocessor.cfg is used, it will have a URL attribute in it:
SPECID=5322
SPECNAME=Name_of_Book
URL=http://someurl

So the csprocessor can then match the csprocessor.cfg URL with a csprocessor.ini .url property, and use the .apikey to communicate with the server.

This means that "projects know which server they are stored on".

Comment 1 Joshua Wulf 2012-02-23 14:29:00 UTC
actually, the csprocessor.cfg key should be something like 

SERVER

to make its purpose more evident to the user.

Comment 2 Joshua Wulf 2012-02-23 14:46:12 UTC
When a csprocessor command is run with the -s switch, no apikey is required at the command line if it is present in the csprocessor.ini

Comment 3 Lee Newson 2012-03-05 06:09:49 UTC
Added in 0.22.0.

The client now has the ability to have multiple servers. A "default" server must always be specified so that it has something to go back on. The csprocessor.cfg uses the "SERVER_URL" attribute as it is more meaningful then plain "SERVER" as well.

For the username (previously apikey) it will attempt to match the -H (previously -S) url to a server. If no server matches then it will default to the "default" server.

The whole csprocessor.ini format has somewhat changed as well. See Bug #796009 for more details.

Comment 4 Lee Newson 2013-06-07 01:29:36 UTC
Closing and setting as current release as no QA was performed by the original reporter. If there is still an issue with this bug still than please re-open it.