Files
herolib/lib/installers/infra/coredns
2025-08-25 06:09:51 +02:00
..
2025-02-11 09:37:03 +03:00
...
2025-08-16 19:27:31 +02:00
...
2025-08-15 07:09:40 +02:00
...
2025-08-16 19:42:08 +02:00
...
2025-02-09 13:32:34 +01:00
...
2025-02-09 13:32:34 +01:00
...
2025-08-25 06:09:51 +02:00

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