aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-14 03:02:06 -0700
committerelijah <elijah@riseup.net>2012-10-14 03:02:06 -0700
commitc6d2272ddb370b9731e17b06fa08971e6cda5202 (patch)
tree492931f6b62088062ae070814ec714bcbd1f0707 /README.md
parentcde5fc17fe235405703c67184c81d85643b257a2 (diff)
downloadleap_cli-c6d2272ddb370b9731e17b06fa08971e6cda5202.tar.gz
leap_cli-c6d2272ddb370b9731e17b06fa08971e6cda5202.tar.bz2
added add-user command
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 28 insertions, 2 deletions
diff --git a/README.md b/README.md
index fccd6d1..3995533 100644
--- a/README.md
+++ b/README.md
@@ -77,9 +77,35 @@ Options in the configuration files might be nested. For example:
}
}
-When compiled into hiera and made available in puppet, this becomes a Hash object with flattened keys:
+If the value string is prefixed with an '=' character, the value is evaluated as ruby. For example
+
+ {
+ "domain": {
+ "public": "domain.org"
+ }
+ "api_domain": "= 'api.' + domain.public"
+ }
+
+In this case, "api_domain" will be set to "api.domain.org".
+
+The following methods are available to the evaluated ruby:
+
+* nodes -- A list of all nodes. This list can be filtered.
+
+* global.services -- A list of all services.
+
+* global.tags -- A list of all tags.
+
+* file(file_path) -- Inserts the full contents of the file. If the file is an erb
+ template, it is rendered. The file is searched for by first checking platform
+ and then provider/files,
+
+* variable -- Any variable inherited by a particular node is available
+ by just referencing it using either hash notation or object notation
+ (i.e. self['domain']['public'] or domain.public). Circular
+ references are not allowed, but otherwise it is ok to nest
+ evaluated values in other evaluated values.
- {"openvpn.ip_address" => "1.1.1.1"}
Node Configuration
=================================