From c6d2272ddb370b9731e17b06fa08971e6cda5202 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 14 Oct 2012 03:02:06 -0700 Subject: added add-user command --- README.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'README.md') 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 ================================= -- cgit v1.2.3