provisioning-code/schemas/providers/registrar.ncl

36 lines
726 B
Text
Raw Normal View History

# Registrar Provider Configuration Schema
{
RegistrarProvider = [| 'porkbun, 'cloudflare |],
RegistrarDomain = {
name | String,
registrar | RegistrarProvider,
account_ref | String,
},
RegistrarAccount = {
provider | RegistrarProvider,
account_ref | String,
description | String | optional,
shared_secret_ref | String,
},
RegistrarConfig = {
accounts | Array RegistrarAccount | default = [],
domains | Array RegistrarDomain | default = [],
},
defaults = {
config = {
accounts = [],
domains = [],
},
},
make_config | not_exported = fun o =>
defaults.config & o,
DefaultRegistrarConfig = defaults.config,
}