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

New Memset module to manage DNS zone records #40392

Merged
merged 5 commits into from
May 23, 2018
Merged

New Memset module to manage DNS zone records #40392

merged 5 commits into from
May 23, 2018

Conversation

glitchcrab
Copy link
Contributor

SUMMARY

This PR provides a module to manage DNS zone records hosted at Memset .

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME
  • memset_zone_record
ANSIBLE VERSION
2.6

@ansibot ansibot added affects_2.6 This issue/PR affects Ansible v2.6 cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels May 18, 2018
@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label May 18, 2018
@duncan9562
Copy link

Added test records - working as expected!

@ghost
Copy link

ghost commented May 23, 2018

Works fine for me.

@PebbleOfParagon
Copy link

Added and removed DNS records with this. Works exactly as expected

@resmo resmo added the shipit This PR is ready to be merged by Core label May 23, 2018
@ansibot ansibot removed the shipit This PR is ready to be merged by Core label May 23, 2018
Copy link
Contributor

@resmo resmo left a comment

Choose a reason for hiding this comment

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

Is there a way to have multiple a records? Is this supported by the api?

needs_info

- Manage DNS records in a Memset account.
options:
state:
required: true
Copy link
Contributor

Choose a reason for hiding this comment

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

not a blocker but the convention is to have present as default, please also consider this for your module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can do that.

# if we have any matches, delete them.
if records:
for zone_record in records:
if args['check_mode']:
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if this works, did you test check mode? shouldn't this be module.check_mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I add it to the args here

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, missed that!

@glitchcrab
Copy link
Contributor Author

@resmo unfortunately not, the API only supports a single record at a time so it's a case of a new task each time (when testing i've been using with_items).

Copy link
Contributor

@resmo resmo left a comment

Choose a reason for hiding this comment

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

shipit

@resmo
Copy link
Contributor

resmo commented May 23, 2018

counting 4 shipits.

@resmo resmo merged commit 450891a into ansible:devel May 23, 2018
@ansibot ansibot added shipit This PR is ready to be merged by Core and removed community_review In order to be merged, this PR must follow the community review workflow. labels May 23, 2018
@resmo
Copy link
Contributor

resmo commented May 23, 2018

Thanks!

@James-MS
Copy link

Works for me!

gothicx pushed a commit to gothicx/ansible that referenced this pull request Jun 9, 2018
jacum pushed a commit to jacum/ansible that referenced this pull request Jun 26, 2018
@glitchcrab glitchcrab deleted the memset_zone_record branch October 29, 2018 13:21
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
@ansible ansible locked and limited conversation to collaborators May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.6 This issue/PR affects Ansible v2.6 cloud module This issue/PR relates to a module. new_module This PR includes a new module. new_plugin This PR includes a new plugin. shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants