Files
herolib/lib/installers/infra/coredns/readme.md
2025-03-12 16:36:17 +01:00

845 B

coredns

coredns

To get started



import freeflowuniverse.herolib.installers.infra.coredns as coredns_installer

heroscript:="
!!coredns.configure name:'test'
    config_path: '/etc/coredns/Corefile'
    dnszones_path: '/etc/coredns/zones'
    plugins: 'forward,cache'
    example: true

!!coredns.start name:'test' reset:1 
"

coredns_installer.play(heroscript=heroscript)!

//or we can call the default and do a start with reset
//mut installer:= coredns_installer.get()!
//installer.start(reset:true)!



example heroscript

!!coredns.configure
    name: 'custom'
    config_path: '/etc/coredns/Corefile'
    config_url: 'https://github.com/example/coredns-config'
    dnszones_path: '/etc/coredns/zones'
    dnszones_url: 'https://github.com/example/dns-zones'
    plugins: 'forward,cache'
    example: false