[Opensim-dev] New configuration capabilities (James Hughes)

Dev Random digimancy at gmail.com
Sat Oct 11 13:06:07 UTC 2014


This is an especially useful approach for spinning up template-based grids
for testing concepts, etc.   I use a setup similar to this, but with
Environment variables set from a launch script.  It will be nice to be able
to move some of the config items into the ini files.  Here's some of the
places I use this approach:

e.g. Robust.ini

[Environment]
  GRID_NICK=""       ; should be set by shell script
  GRID_NAME=""       ; should be set by shell script
  OPENSIM_HOME=""    ; should be set by shell script
  ROBUST_DATABASE="" ; should be set by shell script
  ROBUST_USERNAME="" ; should be set by shell script
  ROBUST_PASSWORD="" ; should be set by shell script

[Startup]
  PIDFile = "${Environment|OPENSIM_HOME}/Custom/Work/ROBUST/Robust.exe.pid"

[DatabaseService]
  ConnectionString = "Data
Source=localhost;Database=${Environment|ROBUST_DATABASE};User
ID=${Environment|ROBUST_USERNAME};Password=${Environment|ROBUST_PASSWORD};Old
Guids=true;"

[LoginService]
  WelcomeMessage = "Welcome to ${Environment|GRID_NICK}"


e.g. a Region.ini

[Environment]
  GRID_NICK=""        ; should be set by shell script
  GRID_NAME=""        ; should be set by shell script
  OPENSIM_HOME=""     ; should be set by shell script
  REGION_DATABASE=""  ; should be set by shell script
  REGION_USERNAME=""  ; should be set by shell script
  REGION_PASSWORD ="" ; should be set by shell script
  ESTATE_DATABASE=""  ; should be set by shell script
  ESTATE_USERNAME=""  ; should be set by shell script
  ESTATE_PASSWORD ="" ; should be set by shell script
  SIM_NAME=""         ; should be set by shell script
  ROBUST_SERVER=""    ; should be set by shell script

[Startup]
  PIDFile =
"${Environment|OPENSIM_HOME}/Custom/Work/${Environment|SIM_NAME}/OpenSim.pid"

regionload_regionsdir="${Environment|OPENSIM_HOME}/Custom/GridConfig/${Environment|SIM_NAME}/Regions"

[AssetService]
  AssetServerURI = "http://${Environment|ROBUST_SERVER}:8003"

[DatabaseService]
  ConnectionString = "Data
Source=localhost;Database=${Environment|REGION_DATABASE};User
ID=${Environment|REGION_USERNAME};Password=${Environment|REGION_PASSWORD};Old
Guids=true;"
  EstateConnectionString = "Data
Source=localhost;Database=${Environment|ESTATE_DATABASE};User
ID=${Environment|ESTATE_USERNAME};Password=${Environment|ESTATE_PASSWORD};Old
Guids=true;"


Date: Fri, 10 Oct 2014 21:18:55 -0400
> From: James Hughes <jamesh at bluewallgroup.com>
> To: opensim-dev at opensimulator.org
> Subject: Re: [Opensim-dev] New configuration capabilities
> Message-ID: <1412990335.11555.5.camel at ascent.bluewallgroup.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On Fri, 2014-10-10 at 20:41 -0400, Robert Martin wrote:
> > somebody really should have a set of config files with this setup
> > (maybe with localhost/default values?).
> >
> > It would be great to be able to tell my Music Pastor that "Journey to
> > Bethlehem" Sim version just needs a single set of switches to be fixed
> > to go LIVE ON THE NET YEAR ROUND
> >
>
> That is the idea.
>
> The things that pop out at me are urls, ports and paths for caching,
> logging, etc.
>
> What else?
>
> Thanks,
> BlueWall
>
>
>
> ------------------------------
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at opensimulator.org
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev
>
>
> End of Opensim-dev Digest, Vol 7, Issue 9
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20141011/46de4001/attachment.html>


More information about the Opensim-dev mailing list