diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-21 11:32:27 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-21 11:32:27 +0300 |
commit | f5f9ad5a144999f7c788119cc21d967734ae0dba (patch) | |
tree | c65c817e401c8264212e1b7abad9ac2fa18ece94 /doc | |
parent | dc2eda2489f6f8e9bd699c3968edd0710b3adb73 (diff) | |
download | eclat-f5f9ad5a144999f7c788119cc21d967734ae0dba.tar.gz eclat-f5f9ad5a144999f7c788119cc21d967734ae0dba.tar.bz2 |
Various minor fixes.
* doc/eclat.conf.5: Document EC2 maps.
* etc/eclat.cfin: Provide default maps.
* lib/Makefile.am (AM_LFLAGS): Remove -v.
* lib/bidimap.c (cb_submap): Remove unused variable.
* lib/forlan.c: Minor change.
* lib/forlangrm.y: Declare prototype for yylex.
* lib/forlanlex.l: Add option nounput
* lib/libeclat.h (eclat_map) <locus>: New member.
* lib/map.c (eclat_map_config): Warn if attempting to
redeclare an existing map.
* src/ec2map.c (ec2_map_get): Minor change.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/eclat.conf.5 | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/doc/eclat.conf.5 b/doc/eclat.conf.5 index 30b5b81..8905450 100644 --- a/doc/eclat.conf.5 +++ b/doc/eclat.conf.5 @@ -13,7 +13,7 @@ .\" .\" You should have received a copy of the GNU General Public License .\" along with Eclat. If not, see <http://www.gnu.org/licenses/>. -.TH ECLAT.CONF 5 "April 26, 2013" "ECLAT" "Eclat User Reference" +.TH ECLAT.CONF 5 "May 21, 2013" "ECLAT" "Eclat User Reference" .SH NAME eclat.conf \- configuration file for .BR eclat (1). @@ -868,6 +868,48 @@ This statement is mandatory. \fBdebug\fR \fIn\fR Sets the LDAP debug number. Refer to the OpenLDAP documentation for the valid values of \fIn\fR and their meaning. +.SS EC2 MAP +This map makes it possible to use \fBEC2\fR services to translate +identifiers. The idea is to query \fBEC2\fR using the symbolic ID and +obtain the real resource ID from the request. The map is defined as +follows: +.sp +.nf + map <name: string> { + type ec2; + key \fItrans\fR; + action \fIaction-name\fR; + arguments \fIarg-list\fR; + return \fIreturn-path\fR; + } +.fi +.sp +.TP +\fBaction\fR \fIaction-name\fR +Defines the \fBEC2\fR action name to use. Refer to the Amazon API +documentation for a list of action names. +.TP +\fBarguments\fR \fIarg-list\fR +Defines the list of arguments to send with the request. Any +occurrence of the \fB$key\fR variable within that list is replaced +with the actual key value. +.TP +\fBreturn\fR \fIreturn-path\fR +Defines the return value, using a path notation. +.PP +The example below illustrates the use of the \fBDescribeImages\fR +action to implement the \fBImageId\fR map: +.sp +.nf + map "ImageId" { + type ec2; + action DescribeImages; + arguments ("Owner.1=self", + "Filter.1.Name=tag:Name", + "Filter.1.Value.1=${key}"); + return ".DescribeImagesResponse.imagesSet.item.imageId"; + } +.fi .SH "SEE ALSO" .BR eclat (1), .BR m4 (1). |