projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some hosts use mpm_prefork
[mirror/dsa-puppet.git]
/
modules
/
multipath
/
manifests
/
init.pp
diff --git
a/modules/multipath/manifests/init.pp
b/modules/multipath/manifests/init.pp
index
90bf9b9
..
ee6f8c4
100644
(file)
--- 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: {
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';
+ $conffile = 'multipath-bm.conf'
+ }
+ ubc-bl8,ubc-bl4,ubc-bl7,ubc-bl3,ubc-bl2,ubc-bl6: {
+ $conffile = 'multipath-ubc-ganeti.conf'
+ }
+ ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10: {
+ $conffile = 'multipath-ubc-ganeti2.conf'
}
default: {
$conffile = ''
}
default: {
$conffile = ''
@@
-16,11
+30,11
@@
class multipath {
path => '/usr/bin:/usr/sbin:/bin:/sbin',
command => 'service multipath-tools reload',
refreshonly => true,
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':
}
file { '/etc/multipath.conf':
-
source => "puppet:///modules/multipath/$conffile"
,
+
content => template("multipath/${conffile}.erb")
,
notify => Exec['multipath reload']
}
}
notify => Exec['multipath reload']
}
}