VNC proxy: only export vncproxy_host if it hasn't already been exported
This commit is contained in:
parent
dc04d228d7
commit
437ac61dd0
@ -4,10 +4,11 @@ class kickstack::nova::vncproxy inherits kickstack {
|
||||
|
||||
kickstack::nova::service { 'vncproxy': }
|
||||
|
||||
kickstack::exportfact::export { "vncproxy_host":
|
||||
value => "${hostname}",
|
||||
tag => "nova",
|
||||
require => Kickstack::Nova::Service["vncproxy"]
|
||||
unless getvar("${::kickstack::fact_prefix}vncproxy_host") {
|
||||
kickstack::exportfact::export { "vncproxy_host":
|
||||
value => "${hostname}",
|
||||
tag => "nova",
|
||||
require => Kickstack::Nova::Service["vncproxy"]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user