Skip to main content

A named YAML file provider for octoDNS

Project description

A named YAML file provider for octoDNS

An octoDNS provider that targets a named YAML file. Useful for sharing records between multiple zones.

Installation

Command line

pip install octodns_namedfileyaml

requirements.txt/setup.py

Pinning specific versions or SHAs is recommended to avoid unplanned upgrades.

Versions

Waiting for a new octodns release to support this

# Start with the latest versions and don't just copy what's here
octodns==0.9.14
octodns_namedfileyaml==0.0.1
SHAs
# Start with the latest/specific versions and don't just copy what's here
-e git+https://git@github.com/octodns/octodns.git@af23c00b266c959f4001cd809b04511128a5602b#egg=octodns
-e git+https://git@github.com/octodns/octodns_namedfileyaml.git@ec9661f8b335241ae4746eea467a8509205e6a30#egg=octodns_namedfileyaml

Configuration

Example for sharing email records between two domains managed at cloudflare:

providers:
  zones:
    class: octodns_namedfileyaml.YamlProvider
    directory: ./zones
    enforce_order: False
    default_ttl: 300
  shared.email:
    class: octodns_namedfileyaml.NamedFileYamlProvider
    directory: ./shared
    filename: mail.yaml
  cloudflare:
    class: octodns_cloudflare.CloudflareProvider
    token: env/CLOUDFLARE_TOKEN
    strict_supports: true

zones:
  example.com.:
    sources:
      - zones
      - shared.email
    targets:
      - cloudflare
  example.net.:
    sources:
      - zones
      - shared.email
    targets:
      - cloudflare

Support Information

Records

All octoDNS record types are supported.

Dynamic

NamedFileYamlProvider does not support dynamic records.

Development

See the /script/ directory for some tools to help with the development process. They generally follow the Script to rule them all pattern. Most useful is ./script/bootstrap which will create a venv and install both the runtime and development related requirements. It will also hook up a pre-commit hook that covers most of what's run by CI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octodns-namedfileyaml-0.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

octodns_namedfileyaml-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file octodns-namedfileyaml-0.0.2.tar.gz.

File metadata

  • Download URL: octodns-namedfileyaml-0.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for octodns-namedfileyaml-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bf7240dd7e2dbfb076bcc805924d1e40c4d6b8c96420ae7f64642a2268814517
MD5 a583c13247e1e7948530122ab87ccfdd
BLAKE2b-256 ed6709f25f9ff36b3bb7d8d6fa165dc5977e374d2496923e8e2091dabf4e8486

See more details on using hashes here.

File details

Details for the file octodns_namedfileyaml-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for octodns_namedfileyaml-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 432b2e897c26180daf94fb9f5122698190d6753ee5aa4571d107a62bc90692c5
MD5 16cb66f3fbdbd9881e2bccc35d610153
BLAKE2b-256 7dedb824a6e9a2ec7da3f62ece0cf56f3f4301d9e5a5625c71a3a7bdcc3e07d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page