aboutsummaryrefslogtreecommitdiffstats
path: root/lib/config.js
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-12-06 10:16:43 -0500
committerAlex Shatov <alexs@att.com>2018-12-06 10:16:43 -0500
commitca00a932eae5e706f01519612fce1015c9ff9d58 (patch)
tree796210ad1dfb8e4e717c06264f01fb64faa0fda6 /lib/config.js
parent84d5646b3f0250079c386ed2e1eb9fd7d551004e (diff)
3.1.0/5.1.0 - check for finished deployment
- external version 3.1.0 - internal version 5.1.0 for code change - no API change - check for finished deployment creation - success or failure - stop querying cloudify manager on failed deployment creation - use optional $CONSUL_URL to get url of consul - improved info used for audit and logging and responses - added more unit tests unit test coverage summary Statements : 80.99% ( 946/1168 ) Branches : 58.22% ( 294/505 ) Functions : 81.28% ( 165/203 ) Lines : 81.53% ( 936/1148 ) Change-Id: I831cd0db0d2e148e6da4c9190495aacf72e2d39c Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-929
Diffstat (limited to 'lib/config.js')
-rw-r--r--lib/config.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/config.js b/lib/config.js
index 8daa87f..d4fd3e3 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -19,8 +19,11 @@ See the License for the specific language governing permissions and limitations
* Configuration may come from environment variables, a value in a Consul key-value store, or defaults,
* in that order of precedence.
*
- * The address of the Consul host is passed in an environment variable called CONSUL_HOST.
- * If present, the configuration value in the key-value store is a UTF-8 serialization of a JSON object.
+ * The url of the Consul is passed in an optional environment variable called CONSUL_URL.
+ * If $CONSUL_URL not provided, the deployment-handler looks at the Consul host that can be passed
+ * in as an environment variable called CONSUL_HOST, that corresponds to url "http://${CONSUL_HOST}:8500".
+ * If $CONSUL_HOST not provided as well, the consul url is "http://consul:8500".
+ * If present, the configuration value in the consul-key-value store is a UTF-8 serialization of a JSON object.
*
*
* --------------------------------------------------------------------------------------