github.com/kurthockenbury/dnscontrol@v0.2.8/providers/octodns/mkprodyaml.sh (about)

     1  #!/bin/bash
     2  
     3  # Read the YAML files in the config directory and generate a production.yaml file.
     4  
     5  cat <<HERE >production.yaml
     6  ---
     7  providers:
     8    config:
     9      class: octodns.provider.yaml.YamlProvider
    10      directory: ./config
    11  zones:
    12  HERE
    13  
    14  ( cd config && ls *.yaml ) |
    15  grep -v '^provider.yaml$' |
    16  sed 's/.\{4\}$//' |
    17  awk '{ print "    " $1 ":" ; print "    sources:" ; print "      - config" }' >>production.yaml