Fixed iscsi module for puppet 2.6
This commit is contained in:
parent
f949abb3a9
commit
adf92c860d
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ define iscsi::connect($portal) {
|
|||
exec { "iscsi-connect-${name}":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "iscsiadm --mode discovery --type sendtargets --portal ${portal} && iscsiadm --mode node --targetname ${name} --portal ${portal} --login && sleep 5",
|
||||
onlyif => "! iscsiadm --mode session | egrep '${portal}:[0-9]*,[0-9]* ${name}'\$",
|
||||
unless => "iscsiadm --mode session | egrep '${portal}:[0-9]*,[0-9]* ${name}'\$",
|
||||
require => Service["iscsid"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue