X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmultipath%2Fmanifests%2Finit.pp;h=0056dd12e0413656a5cca585b39d5c23308dc5d7;hb=b2d699c3e9ae3ab70d69e86cf71458b0b1c6d1a9;hp=aca0684058ca9cf50875feca0565dd87d2d11461;hpb=09cea27fc09713eb3c1fbc086937996deb0264c1;p=mirror%2Fdsa-puppet.git diff --git a/modules/multipath/manifests/init.pp b/modules/multipath/manifests/init.pp index aca068405..0056dd12e 100644 --- a/modules/multipath/manifests/init.pp +++ b/modules/multipath/manifests/init.pp @@ -1,10 +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' } - rossini: { - $conffile = 'bm-ubc-ganeti.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: { + $conffile = 'multipath-ubc-ganeti.conf' } default: { $conffile = '' @@ -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", + source => "puppet:///modules/multipath/${conffile}", notify => Exec['multipath reload'] } }