Skip to content

installers.infra.coredns #

fn check #

fn check() !bool

fn configure #

fn configure(args_ InstallArgs) !

fn example_configure #

fn example_configure(args_ InstallArgs) !

fn install #

fn install(args_ InstallArgs) !

fn play #

fn play(mut plbook playbook.PlayBook) !

fn restart #

fn restart(args_ InstallArgs) !

fn start #

fn start(args_ InstallArgs) !

fn stop #

fn stop(args_ InstallArgs) !

struct InstallArgs #

@[params]
struct InstallArgs {
pub mut:
	reset         bool // this means we re-install and forgot what we did before
	start         bool = true
	stop          bool
	restart       bool     // this means we stop if started, otherwise just start
	homedir       string   // not sure what this is?
	config_path   string   // path to Corefile, if empty will install default one
	config_url    string   // path to Corefile through e.g. git url, will pull it if it is not local yet
	dnszones_path string   // path to where all the dns zones are
	dnszones_url  string   // path on git url pull if needed
	plugins       []string // list of plugins to build CoreDNS with
	example       bool     // if true we will install examples
}