source: trunk/packages/xvm-iscsi-config/debian/transform_iscsid.conf.xvm.mako @ 2123

Last change on this file since 2123 was 1984, checked in by broder, 16 years ago

Shorten the timeout for when queued requests get punted to the next
level up (i.e. multipath)

  • Property svn:executable set to *
File size: 834 bytes
Line 
1#!/usr/bin/perl -n
2BEGIN {
3  print <<'EOF';
4<%
5from invirt.config import structs as cfg
6%>
7EOF
8}
9
10s/^node\.startup = manual/node.startup = automatic/m;
11# mako just generally doesn't deal well with lines that start with
12# hashes, so we'll strip them
13#
14# And empty lines too, just for cleanliness
15s/^#.*$//m;
16
17# This is how long requests will sit in the queue before being failed
18# up to the next layer (i.e. multipath)
19s/^#?(node\.session\.timeo\.replacement_timeout).*$/\1 = 15/m;
20print unless /^$/;
21
22END {
23  print <<'EOF';
24node.session.auth.authmethod = CHAP
25node.session.auth.username = ${cfg.iscsi.username}
26node.session.auth.password = ${cfg.iscsi.password}
27
28discovery.sendtargets.auth.authmethod = CHAP
29discovery.sendtargets.auth.username = ${cfg.iscsi.username}
30discovery.sendtargets.auth.password = ${cfg.iscsi.password}
31EOF
32}
Note: See TracBrowser for help on using the repository browser.