grouper-users - RE: [grouper-users] passing bash variables in grouper.properties file to grouper
Subject: Grouper Users - Open Discussion List
List archive
RE: [grouper-users] passing bash variables in grouper.properties file to grouper
Chronological Thread
- From: "Hyzer, Chris" <>
- To: Jay Hoff <>, "" <>
- Subject: RE: [grouper-users] passing bash variables in grouper.properties file to grouper
- Date: Wed, 6 Apr 2016 23:30:32 +0000
- Accept-language: en-US
- Authentication-results: psu.edu; dkim=none (message not signed) header.d=none;psu.edu; dmarc=none action=none header.from=isc.upenn.edu;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
Yes, it turned out this is possible! :) I updated the wiki.
https://spaces.internet2.edu/display/Grouper/Grouper+configuration+overlay#Grouperconfigurationoverlay-Environmentvariables
Environment variables
If you want a config to be pulled from an environment variable, do this:
somethingWhatever.elConfig = ${java.lang.System.getenv().get('JAVA_HOME')}
That will cause the property "somethingWhatever" to have the value
"c:\dev_inst\java" or whatever it is set to. Do the following two things:
1. append .elConfig to the propertyName
2. this is the value: ${java.lang.System.getenv().get('JAVA_HOME')}
Thanks
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Jay Hoff
Sent: Tuesday, April 05, 2016 2:55 PM
To:
Subject: [grouper-users] passing bash variables in grouper.properties file to
grouper
I have a question about passing a bash variable value into Grouper. I’m
working on making the file grouper.properties free of any system specific
configuration so that it can be replicated to other Grouper nodes without the
need to configure the file for each specific system. Specifically, in
grouper.properties I have the following line:
mail.from.address =
grouper_test@$hostname.subdomain.psu.edu
(the actual FQDN for the node is used)
Which is used for mailing the daily Grouper reports.
What I would like to be able to do, is to pass the value for the bash
variable ${HOSTNAME} to Grouper. I’ve tried this:
mail.from.address =
grouper_test@${HOSTNAME}
but the ${HOSTNAME} is treated as text and the variable is not expanded.
Any thoughts would be helpful.
Thanks much,
Jay
- [grouper-users] passing bash variables in grouper.properties file to grouper, Jay Hoff, 04/05/2016
- RE: [grouper-users] passing bash variables in grouper.properties file to grouper, Hyzer, Chris, 04/06/2016
- Re: [grouper-users] passing bash variables in grouper.properties file to grouper, Jay Hoff, 04/07/2016
- RE: [grouper-users] passing bash variables in grouper.properties file to grouper, Hyzer, Chris, 04/08/2016
- Re: [grouper-users] passing bash variables in grouper.properties file to grouper, Jay Hoff, 04/07/2016
- RE: [grouper-users] passing bash variables in grouper.properties file to grouper, Hyzer, Chris, 04/06/2016
Archive powered by MHonArc 2.6.16.