Allow specifying port from
value for local host binding
This commit is contained in:
parent
b9fb2d4b07
commit
c33f877af8
@ -23,6 +23,7 @@ job "${name}" {
|
||||
%{ for port in ports ~}
|
||||
port "${port.name}" {
|
||||
%{ if port.host_network != null }host_network = "${port.host_network}"%{ endif ~}
|
||||
%{ if port.from != null }to = ${port.from}%{ endif ~}
|
||||
%{ if port.to != null }to = ${port.to}%{ endif ~}
|
||||
%{ if port.static != null }static = ${port.static}%{ endif ~}
|
||||
}
|
||||
|
@ -117,6 +117,7 @@ variable "ports" {
|
||||
type = list(object({
|
||||
name = string
|
||||
host_network = optional(string)
|
||||
from = optional(number)
|
||||
to = optional(number)
|
||||
static = optional(number)
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user