Correctly generate cluster.conf for a two-node cluster.
[invirt/packages/invirt-cluster-config.git] / debian / transform_lvm.conf.invirt
1 #!/usr/bin/perl -0p
2 s#^( *filter) = .*#$1 = [ "r|/dev/mapper/xenvg-.*|" ]#m or die;
3 s/^( *locking_type) = 1.*$/$1 = 2/m or die;
4 s/^( *fallback_to_clustered_locking) = .*$/$1 = 0/m or die;
5 s/^( *fallback_to_local_locking) = .*$/$1 = 0/m or die;
6 s/^( *)# *(locking_library.*)$/$1$2/m or die;
7 s/^( *)# *(library_dir.*)$/$1$2/m or die;