X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fmultipath%2Fmanifests%2Finit.pp;fp=modules%2Fmultipath%2Fmanifests%2Finit.pp;h=90bf9b9c7585f6cbef1ef7eb1566166f51d05c8d;hb=ab2ed88279650106f252798cf1c6ba9b5ddc005b;hp=0000000000000000000000000000000000000000;hpb=0f364e0ba944a33544fa15aef37d584a49320df1;p=dsa-puppet.git diff --git a/modules/multipath/manifests/init.pp b/modules/multipath/manifests/init.pp new file mode 100644 index 00000000..90bf9b9c --- /dev/null +++ b/modules/multipath/manifests/init.pp @@ -0,0 +1,27 @@ +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'; + } + default: { + $conffile = '' + } + } + + if $conffile != '' { + package { 'multipath-tools': + ensure => installed, + } + exec { 'multipath reload': + path => '/usr/bin:/usr/sbin:/bin:/sbin', + command => 'service multipath-tools reload', + refreshonly => true, + require => Package['multipath-tools'], + } + + file { '/etc/multipath.conf': + source => "puppet:///modules/multipath/$conffile", + notify => Exec['multipath reload'] + } + } +}