X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fmultipath%2Fmanifests%2Finit.pp;h=b983131f3a140033f019464f0e6e5541134a99f6;hb=56dbe9f44ab159f71b3ef8fa4dece96cd6845ae3;hp=90bf9b9c7585f6cbef1ef7eb1566166f51d05c8d;hpb=ab2ed88279650106f252798cf1c6ba9b5ddc005b;p=dsa-puppet.git diff --git a/modules/multipath/manifests/init.pp b/modules/multipath/manifests/init.pp index 90bf9b9c..b983131f 100644 --- a/modules/multipath/manifests/init.pp +++ b/modules/multipath/manifests/init.pp @@ -1,7 +1,21 @@ +# = 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 = 'bm-multipath.conf'; + bm-bl9: { + $conffile = 'multipath-bm-os.conf' + } + bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl13,bm-bl14: { + $conffile = 'multipath-bm.conf' + } + ubc-bl8,ubc-bl4,ubc-bl7,ubc-bl3,ubc-bl2,ubc-bl6: { + $conffile = 'multipath-ubc-ganeti.conf' } default: { $conffile = '' @@ -16,11 +30,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'] } }