-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding nsupdate DNS challenge #169
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice addition, thank you!
Let's first get the tests green and make ansible-lint happy. ;)
connection: local | ||
delegate_to: localhost | ||
vars: | ||
relevant_domains: "{{ ([acme_domain.zone] + acme_domain.subject_alt_name | default([])) | ansible.builtin.unique }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to change. acme_domain.zone
will not be in the generated csr and will not be considered as a valid domain for the certificate. Also this is a difference to the other challenge providers and I'd like to keep the basic logic the same.
What need do you see for doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allright, I've changed acme_domain.zone into acme_domain.certificate_name. As one could specify a wildcard here, the *. needs to be replaced in the record (see below). This is also the way how it's done in the other challenge handlers (like autodns.yml).
a55b370
to
bb49e60
Compare
Signed-off-by: Martin Schurz <[email protected]>
Signed-off-by: Martin Schurz <[email protected]>
Signed-off-by: Martin Schurz <[email protected]>
loop_control: | ||
label: "zone={{ domain }} rr={{ record_name }} (TXT) {{ record_data }}" | ||
loop_var: "domain" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: great idea, this makes the log more readable!
Hey all,
please find attached our implementation for nsupdate to include into the module. I hope that my change covers all the documentation needs that you have here - please tell me if there is anything missing. Anyhow, please give me some feedback on my changes. There also is a test playbook which imports the task out of the role which I can provide if you need it.
Greetings,
Michael