Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Scaleway DNS provider for octoDNS

An octoDNS provider that targets Scaleway DNS.

Installation

Command line

pip install octodns_scaleway

requirements.txt/setup.py

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

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

Configuration

providers:
  scaleway:
    class: octodns_scaleway.ScalewayProvider
    # API Secret Key
    token: env/SCALEWAY_SECRET_KEY
    # API Create zone
    create_zone: False

Create Zone

Optional argument (default: False).
If set to True, Automaticaly create new zone when needed. Be carreful: create a new zone can add fee.
If set to False, use the root zone.

Support Information

Records

ScalewayProvider supports A, AAAA, ALIAS, CAA, CNAME, DNAME, LOC, MX, NAPTR, NS, PTR, SPF, SRV, SSHFP, TXT

Dynamic

ScalewayProvider does partially support dynamic records.

Specification:

  • All the pool name must have this pattern: pool-{n} (eg: pool-0, pool-1, pool-2...)
  • The Geo province code isn't supported (eg: NA: ok, EU-FR: ok, NA-US-KY: not ok)
  • If you set the country code, you can't mix multiple continents within a same pool (eg: EU-FR, EU-BE: ok, EU-FR, NA: not ok)
  • Healthcheck only accept the default obey status

Full example:

record-dynamic-geo:
  dynamic:
    pools:
      pool-0:
        fallback: pool-3
        values:
        - value: 1.1.1.1
        - value: 1.1.1.2
      pool-1:
        fallback: pool-3
        values:
        - value: 2.2.2.2
      pool-2:
        fallback: pool-3
        values:
        - value: 3.3.3.3
      pool-3:
        values:
        - value: 4.4.4.4
    rules:
    - geos:
      - AS
      - OC
      pool: pool-0
    - geos:
      - EU-CH
      - EU-FR
      pool: pool-1
    - geos:
      - EU-BE
      pool: pool-2
    - pool: pool-3
  ttl: 60
  type: A
  value: 5.5.5.5

record-dynamic-weigh:
  dynamic:
    pools:
      pool-0:
        values:
        - value: 1.1.1.1
          weight: 1
        - value: 1.1.1.2
          weight: 100
    rules:
    - pool: pool-0
  ttl: 60
  type: A
  value: 5.5.5.5

record-dynamic-healthcheck:
  dynamic:
    pools:
      pool-0:
        values:
        - value: 1.1.1.1
        - value: 1.1.1.2
    rules:
    - pool: pool-0
  octodns:
    healthcheck:
      host: my-domain.tld
      path: /check
      port: 443
      protocol: HTTPS
  ttl: 60
  type: A
  value: 5.5.5.5

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.

Metadata

Release files for octodns-scaleway 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octodns-scaleway 0.0.4
File Size Uploaded
octodns-scaleway-0.0.4.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for octodns-scaleway 0.0.4
File Interpreter ABI Platform
octodns_scaleway-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / octodns-scaleway-0.0.4.tar.gz

Download URL octodns-scaleway-0.0.4.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7c7f71b8282e5433e9b4f1c8c43502045af54a46d35f74a7f64376dbccfa560f
BLAKE2b-256 checksum
How to use checksums
043bbcb0dab989673e3119f6d44381af1369786fa0ab06f1b0d3c93f724a300b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / octodns_scaleway-0.0.4-py3-none-any.whl

Download URL octodns_scaleway-0.0.4-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9eb73325245e00ea4d52a1a55b040e91c350945ef7de07d8297bad3539254de1
BLAKE2b-256 checksum
How to use checksums
5384c1a36802c5316a8f40331a045dd9f1ff947b021b248743c0f529cac628ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page