Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS records from DNSAAS. #2289

Merged
merged 6 commits into from
Apr 1, 2016
Merged

DNS records from DNSAAS. #2289

merged 6 commits into from
Apr 1, 2016

Conversation

szok
Copy link
Contributor

@szok szok commented Mar 15, 2016

Added optional DNS feature to data center assets.
See: https://github.com/allegro/django-powerdns-dnssec



DNS_AUTO_PTR_ALWAYS = 2
DNS_AUTO_PTR_NEVER = 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Django settings?

@mkurek
Copy link
Contributor

mkurek commented Mar 15, 2016

please add basic documentation (docs) for dnsaas integration - possible settings. Put a note here, that this is not transaction-safe, since it's communicating with external system through the api.

- ``ENABLE_DNSAAS_INTEGRATION`` - set to True if you want to enable DNSaaS integration
- ``DNSAAS_URL`` - Url to DNSAAS
- ``DNSAAS_TOKEN`` - API Token to DNSAAS
- ``DNS_AUTO_PTR_ALWAYS`` - DNSAAS auto_ptr value, default is 2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DNS_AUTO_PTR_ALWAYS -> DNSAAS_AUTO_PTR_ALWAYS?

@ghost ghost changed the title Feature/dns DNS records from DNSAAS. Mar 16, 2016
logger = logging.getLogger(__name__)


def get_api_kwargs(url, data=None, headers=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move all *_api_* and *_dns_* method to class and separated module like dnsass.py

Added optional DNS feature to data center assets.
See: https://github.com/allegro/django-powerdns-dnssec
if result:
return result[0]['url']

def create_dns_records(self, record):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_dns_records or create_dns_record ?

Piotr Jarolewski and others added 3 commits March 30, 2016 08:00
Change method name in DNSAAS api
…d in view

* Now you could use `skip_first` param in cache decorator - when set to True, first param (usually class instance a.k.a self) will not be used to calculate hash of params
* dnsview not checks if dnsaas integration is enabled
Added `skip_first` to cache and check if dnsaas integration is enabled in view
@mkurek
Copy link
Contributor

mkurek commented Mar 31, 2016

🆗

1 similar comment
@ar4s
Copy link
Contributor

ar4s commented Apr 1, 2016

🆗

@ar4s ar4s merged commit cea9eae into ng Apr 1, 2016
@mkurek mkurek deleted the feature/dns branch April 24, 2016 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants