X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmultipath%2Fmanifests%2Finit.pp;h=7b8aed31eccd3af9635c5c4aa535124c6b8a1921;hb=d4e88a523a9399f8eb1de643fb559c979210c44c;hp=1262ea185c574585f68f5ac726845bfb8b0abf8c;hpb=df11d54a271217ab177aab7e1fac339a8478e130;p=mirror%2Fdsa-puppet.git diff --git a/modules/multipath/manifests/init.pp b/modules/multipath/manifests/init.pp index 1262ea185..7b8aed31e 100644 --- a/modules/multipath/manifests/init.pp +++ b/modules/multipath/manifests/init.pp @@ -1,9 +1,20 @@ +# = 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: { + 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' } - dijkstra,luchesi,rossini,salieri: { + dijkstra,luchesi,rossini,salieri,pasquini,tristano,bertali: { $conffile = 'multipath-ubc-ganeti.conf' } default: { @@ -19,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'] } }