| @ -1,92 +0,0 @@ | |||||
| # octodns documentation | |||||
| ```{include} ../README.md | |||||
| --- | |||||
| end-before: '## Table of Contents' | |||||
| --- | |||||
| ``` | |||||
| ______________________________________________________________________ | |||||
| ## User documentation | |||||
| ```{toctree} | |||||
| :caption: Getting Started: | |||||
| :maxdepth: 1 | |||||
| examples/README.md | |||||
| examples/basic/README.md | |||||
| examples/migrating-to-octodns/README.md | |||||
| records.md | |||||
| ``` | |||||
| ```{toctree} | |||||
| :caption: Guides: | |||||
| :maxdepth: 1 | |||||
| :glob: | |||||
| [a-q]* | |||||
| ``` | |||||
| ______________________________________________________________________ | |||||
| ## Module documentation | |||||
| ```{toctree} | |||||
| :caption: Providers: | |||||
| :maxdepth: 2 | |||||
| :glob: | |||||
| modules/provider/* | |||||
| ``` | |||||
| ```{toctree} | |||||
| :caption: Sources: | |||||
| :maxdepth: 2 | |||||
| :glob: | |||||
| modules/source/* | |||||
| ``` | |||||
| ```{toctree} | |||||
| :caption: Records: | |||||
| :maxdepth: 2 | |||||
| :glob: | |||||
| modules/record/* | |||||
| ``` | |||||
| ```{toctree} | |||||
| :caption: Processors: | |||||
| :maxdepth: 2 | |||||
| :glob: | |||||
| modules/processor/* | |||||
| ``` | |||||
| ```{toctree} | |||||
| :caption: Other modules: | |||||
| :titlesonly: | |||||
| :glob: | |||||
| modules/* | |||||
| modules/cmds/* | |||||
| modules/secret/* | |||||
| ``` | |||||
| ______________________________________________________________________ | |||||
| ## Indices and tables | |||||
| - {ref}`genindex` | |||||
| - {ref}`modindex` | |||||
| ```{toctree} | |||||
| :caption: Project info: | |||||
| :titlesonly: | |||||
| info/changelog.md | |||||
| info/license.md | |||||
| ``` | |||||
| @ -1,59 +0,0 @@ | |||||
| # octoDNS processors | |||||
| ## Available processors | |||||
| These are listed in the main [`README`](../README.md#processors) | |||||
| ## Configuring processors | |||||
| Configuring processors is done in the main config file. | |||||
| ### Defining a processor configuration | |||||
| This is done under the top-level `processors` key in the octoDNS config file (for example `config.yaml`), as a sibling to the `manager` key. | |||||
| The `processors` key contains YAML objects, where the key is the name of the processor, and the `class` value within that object refers to the processor name. | |||||
| For example, to define a provider called `custom_meta` using the [`MetaProcessor`](../octodns/processor/meta.py) in order to extend the default `include_meta` behaviour: | |||||
| ```yaml | |||||
| manager: | |||||
| include_meta: false # disable default, basic `meta` records | |||||
| processors: | |||||
| custom_meta: | |||||
| class: octodns.processor.meta.MetaProcessor | |||||
| record_name: meta | |||||
| include_time: true | |||||
| include_uuid: true | |||||
| include_provider: true | |||||
| include_version: false | |||||
| ``` | |||||
| **NOTE:** the specific parameters for each processor are only documented within [the code](../octodns/processor/) | |||||
| ### Utilising the processor configuration | |||||
| #### On **individual** domains | |||||
| Each domain can utilise the processor independently by adding the name of the defined processor to a `processors` key beneath a `zone`: | |||||
| ```yaml | |||||
| zones: | |||||
| example.com.: | |||||
| source: | |||||
| - yaml_config | |||||
| target: | |||||
| - hetzner | |||||
| processors: | |||||
| - custom_meta | |||||
| ``` | |||||
| #### On **all** domains | |||||
| To utilise the processor on **all** domains automatically, including new domains added to the `zones` config in future then you can add this to the `processors` key under the `manager` section of the configuration: | |||||
| ```yaml | |||||
| manager: | |||||
| processors: | |||||
| - custom_meta | |||||
| ``` | |||||
| @ -0,0 +1,87 @@ | |||||
| Processor | |||||
| ========= | |||||
| Defining a processor configuration | |||||
| ---------------------------------- | |||||
| This is done under the top-level ``processors`` key in the octoDNS config file | |||||
| (for example ``config.yaml``), as a sibling to the ``manager`` key. | |||||
| The ``processors`` key contains YAML objects, where the key is the name of the | |||||
| processor, and the ``class`` value within that object refers to the processor | |||||
| name. | |||||
| For example, to define a provider called ``custom_meta`` using the | |||||
| :py:class:`octodns.processor.meta.MetaProcessor` in order to extend the default | |||||
| ``include_meta`` behaviour:: | |||||
| manager: | |||||
| include_meta: false # disable default, basic `meta` records | |||||
| processors: | |||||
| custom_meta: | |||||
| class: octodns.processor.meta.MetaProcessor | |||||
| record_name: meta | |||||
| include_time: true | |||||
| include_uuid: true | |||||
| include_provider: true | |||||
| include_version: false | |||||
| Utilising the processor configuration | |||||
| ------------------------------------- | |||||
| On **individual** domains | |||||
| ......................... | |||||
| Each domain can utilise the processor independently by adding the name of the | |||||
| defined processor to a ``processors`` key beneath a ``zone``:: | |||||
| zones: | |||||
| example.com.: | |||||
| source: | |||||
| - yaml_config | |||||
| target: | |||||
| - hetzner | |||||
| processors: | |||||
| - custom_meta | |||||
| On **all** domains | |||||
| .................. | |||||
| To utilise the processor on **all** domains automatically, including new | |||||
| domains added to the ``zones`` config in future then you can add this to the | |||||
| ``processors`` key under the ``manager`` section of the configuration:: | |||||
| manager: | |||||
| processors: | |||||
| - custom_meta | |||||
| .. autoclass:: octodns.processor.base.BaseProcessor | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.acme | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.arpa | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.filter | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.meta | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.ownership | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.restrict | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.spf | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.templating | |||||
| :inherited-members: | |||||
| .. automodule:: octodns.processor.trailing_dots | |||||
| :inherited-members: | |||||