ansible/dhall/Server.dhall

19 lines
429 B
Text
Raw Normal View History

2024-11-26 04:03:32 +00:00
let Simple =
{ Type = { address : Text, hostnames : List Text }
, default.hostnames = [] : List Text
}
let Proxmox = ./Proxmox.dhall
let Server = < Simple : Simple | Proxmox : Proxmox >
let ipAddress =
\(server : Server) ->
merge
{ Simple = \(s : Simple) -> s.address
, Proxmox = \(s : Proxmox.Proxmox) -> Proxmox.ipAddress s
}
server
in { ipAddress }