Jonathan Leroy
f2a6f870b4
Make each alias zone reference its target zone instead of listing all
...
aliases zones in the target zone configuration
2020-10-20 22:18:48 +02:00
Jonathan Leroy
7bf0b31367
Revert "Add support for zones aliases"
...
This reverts commit b926d78c5c
.
2020-10-20 19:54:35 +02:00
Jonathan Leroy
2cc91ead71
Merge branch 'master' into zones-aliases
2020-10-20 19:51:56 +02:00
Guillaume Gelin
31105cc472
Implement octodns-sync --source
...
It can be useful to only synchronize zones that use a certain source. For
example, in a situation where some zones use a dynamic source and others don't,
you probably want to synchronize those with a dynamic source regularly, and
only synchronize the others when a change is made.
Although we only synchronize the zones that use a given source, we still want
to synchronize all sources to avoid deleting records that would live in another
source of the zone.
2020-08-27 16:16:24 +02:00
Jonathan Leroy
b926d78c5c
Add support for zones aliases
...
This commit adds support for zones aliases. This allows to define one or
multiple zone as aliases of an existing zone without using workarounds
like simlinks and miltiple "zones" entries in the configuration file.
An alias zone is share all of its content with it parent zone, only the
name of the zone is different.
```
zones:
example.com.:
aliases:
- example.net.
- example.org.
sources:
- in
targets:
- out
```
Known issues:
- No documentation,
- Only the `octodns-sync` and `octodns-validate` commands supports
aliases zones at this time,
I added a loop in the manager init function which convert all alias
zone to "real" ones during config validation, however I'm not sure
this is the right approach. Comments welcome.
2020-08-03 00:47:22 +02:00
Ross McFarland
c25dd38d4f
lenient param to populate needs to be optoinal
2020-06-24 18:37:22 -07:00
Lance Hudson
e477f9f888
Add the ability to mark a zone as lenient
2020-06-11 20:11:12 -04:00
Mikalai Radchuk
6498a1e094
Fixes a typo in log
2020-01-29 20:53:16 +00:00
Ross McFarland
b8e2ec124b
Fix Manager comment wrapping
2019-10-14 07:48:17 -07:00
Ross McFarland
b3bd4382cc
Apply suggestions from code review
...
Co-Authored-By: Theo Julienne <theojulienne@github.com >
2019-10-14 07:32:09 -07:00
Ross McFarland
b5c75d189c
Convert sources building back out to for x in y from list comprehension
2019-10-09 16:01:39 -07:00
Ross McFarland
4d0bc29acc
Remove a couple more filters(
2019-10-09 15:36:25 -07:00
Ross McFarland
00fa158c59
filter -> [... if]s
2019-10-09 15:31:27 -07:00
Ross McFarland
3f487197df
Manager throws ManagerException rather than Exception, more robust tests
2019-10-09 15:09:37 -07:00
Ross McFarland
25cc4f42db
Explicit list on filter when checking for non-existant targets
2019-10-07 09:33:14 -07:00
cclauss
c8b261a409
Unroll the list comprehensions
2019-07-13 23:49:09 +02:00
cclauss
158add8eb6
Modernize Python 2 code to prepare for Python 3
2019-07-12 02:11:43 +02:00
Christian Funkhouser
81d9c083fc
Add --split flag to dump
...
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com >
2019-04-08 13:59:44 -04:00
Ross McFarland
303d0532c8
Implement SUPPORTS_DYNAMIC functionality, no providers
2018-12-03 14:40:43 -08:00
Ross McFarland
b4176382b5
Cleaner impl for _plan_keyer
2018-05-30 13:35:19 -07:00
Ross McFarland
c54904fa68
Apply sub-zones before parents
2018-05-30 13:28:55 -07:00
Ross McFarland
7228c5b294
Merge remote-tracking branch 'origin/master' into show-zone-create
2018-03-03 10:18:32 -08:00
Josh Soref
5d2ba2e715
Spelling ( #214 )
...
* spelling: ancillary
* spelling: antarctica
* spelling: australia
* spelling: authentication
* spelling: continental
* spelling: constructor
* spelling: conversion
* spelling: creation
* spelling: doesn't
* spelling: easily
* spelling: efficiently
* spelling: equivalent
* spelling: essentially
* spelling: everything
* spelling: exactly
* spelling: be
* spelling: expensive
* spelling: supports
* spelling: healthcheck
* spelling: immediately
* spelling: ignored
* spelling: invocation
* spelling: itself
* spelling: leftovers
* spelling: missing
* spelling: natural
* spelling: nonexistent
* spelling: peculiarities
* spelling: pointing
This change hit a line length limitation, so I'm wrapping it and
adding a period which appears to match local style...
* spelling: quicker
* spelling: response
* spelling: requested
* spelling: redirect
* spelling: traffic
* spelling: unknown
* spelling: uploaded
* spelling: useful
* spelling: separately
* spelling: zone
2018-02-27 09:09:47 -08:00
Ross McFarland
94bfb1e507
Switch populate to return exists, cleaner setup
2018-01-21 14:06:20 -08:00
Ross McFarland
1e71bce907
Add create param to Plan
2018-01-21 13:47:58 -08:00
Ross McFarland
3d0f5aeca0
Config-based plan_output
...
Refactors the provider class lookup and kwarg processing so that it can be
reused for plan_output.
2017-12-02 11:40:55 -08:00
Ross McFarland
31e6f99df6
Manager.plan_outputs
2017-12-02 10:37:19 -08:00
Ross McFarland
b72fba3e35
Move the log plan output to PlanLogger
2017-12-02 10:34:32 -08:00
Ross McFarland
f50d9b6087
Extract plan from base.py into plan.py
2017-12-02 10:31:59 -08:00
Ross McFarland
ffeceb39b1
Handle Manager.dump with an empty Zone
2017-10-13 13:15:24 -07:00
Ross McFarland
bdceac42be
Fix stacktraces on MainThreadExecutor
2017-07-02 18:40:58 -07:00
Ross McFarland
5e4d68094f
Add meta record support with provider id to zone
...
Support replace=True in zone.add_record
2017-06-24 17:14:48 -07:00
Ross McFarland
a69ff64ae1
Add --lenient flag to dump
2017-06-23 09:24:25 -07:00
Ross McFarland
cfc0d586a1
Log max_workers, useful to know
2017-06-23 09:06:21 -07:00
Ross McFarland
03a4763624
Skip planning (and populating) zones without elible targets
2017-06-19 21:49:16 -07:00
Ross McFarland
371138dbec
Fix zone-level always-dry-run functionality
...
Thanks @offmindby!
2017-06-08 18:34:33 -07:00
Ross McFarland
9da976122c
Add __main__ calls to main in cmds
2017-05-27 14:10:32 -07:00
Ross McFarland
599605f0b2
"main thread" not "main call"
2017-03-29 07:02:33 -07:00
Ross McFarland
298fc2cdbf
Doc for MainThreadExecutor to lay out why it exists
2017-03-28 13:35:49 -07:00
Ross McFarland
32a7b23923
Don't use threads when max_workers=1
2017-03-28 13:26:02 -07:00
Ross McFarland
377bda4f9c
Implement simplistic planning concurrency, by zone
2017-03-27 14:39:50 -07:00
Ross McFarland
100688cdc6
Fix octodns-* command warning, improve log messages a bit
2017-03-27 09:59:42 -07:00
Ross McFarland
7957a4c018
Initial import of OSS OctoDNS
2017-03-15 15:38:10 -07:00