projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
export ubc multipath config to bertali
[mirror/dsa-puppet.git]
/
modules
/
multipath
/
manifests
/
init.pp
diff --git
a/modules/multipath/manifests/init.pp
b/modules/multipath/manifests/init.pp
index
cb5d02e
..
7b8aed3
100644
(file)
--- 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 {
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'
}
$conffile = 'multipath-bm.conf'
}
- dijkstra,luchesi,rossini: {
+ dijkstra,luchesi,rossini
,salieri,pasquini,tristano,bertali
: {
$conffile = 'multipath-ubc-ganeti.conf'
}
default: {
$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,
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']
}
}