path: root/doc
diff options
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-21 11:32:27 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-05-21 11:32:27 +0300
commitf5f9ad5a144999f7c788119cc21d967734ae0dba (patch)
treec65c817e401c8264212e1b7abad9ac2fa18ece94 /doc
parentdc2eda2489f6f8e9bd699c3968edd0710b3adb73 (diff)
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')
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"
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.
+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
+ map <name: string> {
+ type ec2;
+ key \fItrans\fR;
+ action \fIaction-name\fR;
+ arguments \fIarg-list\fR;
+ return \fIreturn-path\fR;
+ }
+\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.
+\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.
+\fBreturn\fR \fIreturn-path\fR
+Defines the return value, using a path notation.
+The example below illustrates the use of the \fBDescribeImages\fR
+action to implement the \fBImageId\fR map:
+ 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";
+ }
.BR eclat (1),
.BR m4 (1).

Return to:

Send suggestions and report system problems to the System administrator.