gnt on -14
[mirror/dsa-puppet.git] / modules / multipath / manifests / init.pp
index 0e6ba3b..276f54c 100644 (file)
@@ -1,9 +1,17 @@
+# = Class: multipath
+#
+# Manage a multipath installation
+#
+# == Sample Usage:
+#
+#   include multipath
+#
 class multipath {
        case $::hostname {
                bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14: {
                        $conffile = 'multipath-bm.conf'
                }
-               rossini: {
+               ubc-bl8,ubc-bl4,ubc-bl7,ubc-bl3,ubc-bl2,ubc-bl6: {
                        $conffile = 'multipath-ubc-ganeti.conf'
                }
                default: {
@@ -19,11 +27,11 @@ class multipath {
                        path        => '/usr/bin:/usr/sbin:/bin:/sbin',
                        command     => 'service multipath-tools reload',
                        refreshonly => true,
-                       require =>  Package['multipath-tools'],
+                       require     =>  Package['multipath-tools'],
                }
 
                file { '/etc/multipath.conf':
-                       source  => "puppet:///modules/multipath/$conffile",
+                       content  => template("multipath/${conffile}.erb"),
                        notify  => Exec['multipath reload']
                }
        }