Files
herolib/lib/installers/infra/coredns
..
...
2025-02-09 12:24:12 +01:00
...
2025-02-09 13:32:34 +01:00
...
2025-02-09 13:32:34 +01:00
...
2025-02-09 13:32:34 +01:00
...
2025-02-09 12:24:12 +01:00

coredns

coredns

To get started



import freeflowuniverse.herolib.lib.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