lang: core: embedded: provisioner: Skip bmc if empty
This commit is contained in:
@@ -822,13 +822,15 @@ class base:host($name, $config) {
|
|||||||
Before => Print["ready"],
|
Before => Print["ready"],
|
||||||
}
|
}
|
||||||
|
|
||||||
bmc:power "${bmc_uri}" { # TODO: Name() API is not yet stable
|
if "${bmc_uri}" != "" {
|
||||||
#password => "hunter2",
|
bmc:power "${bmc_uri}" { # TODO: Name() API is not yet stable
|
||||||
insecure_password => true, # XXX: get from uri for now
|
#password => "hunter2",
|
||||||
|
insecure_password => true, # XXX: get from uri for now
|
||||||
|
|
||||||
state => "on",
|
state => "on",
|
||||||
|
|
||||||
Meta:poll => 60, # required until BMC's support real events!
|
Meta:poll => 60, # required until BMC's support real events!
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
##$str_true = convert.format_bool(true)
|
##$str_true = convert.format_bool(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user