-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
VMware: dns_suffix as a list of domain suffixes #42678
Conversation
This comment has been minimized.
This comment has been minimized.
@dericcrago @pdellaert @dagwieers Could you please review 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.
Only a single remark.
@@ -287,7 +287,8 @@ | |||
- Linux based OSes requires Perl package to be installed for OS customizations. | |||
- 'Common parameters (Linux/Windows):' | |||
- ' - C(dns_servers) (list): List of DNS servers to configure.' | |||
- ' - C(dns_suffix) (list): List of domain suffixes, also known as DNS search path (default: C(domain) parameter).' | |||
- ' - C(dns_suffix) (list): List of domain suffixes, also known as DNS search path (default: C(domain) parameter). | |||
Also accepts space separated domain suffixes.' |
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 would not advertise space-delimited lists as this is only for backward compatibility. We don't want to offer people this choice, only support people that did not have the choice before. I would even deprecate space-delimited lists over time.
Over time we should use suboptions and argspec options. |
Should we add/update tests ? |
@dagwieers VCSIM does not support customisation (yet) so I don't think so we can add/update any test. |
@dagwieers I removed the doc update. Please take a look. |
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.
Looking good mostly. Only some notes on cosmetic changes for consistent documentation/examples.
hostname: "{{ vcenter_server }}" | ||
username: "{{ vcenter_user }}" | ||
password: "{{ vcenter_password }}" | ||
validate_certs: False |
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.
We standardized to using yes/no booleans in documentation (mostly because it is easier to read and reflects programming less).
validate_certs: False | ||
datacenter: "{{ datacenter }}" | ||
state: present | ||
folder: "/{{datacenter}}/vm" |
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.
No need to quote strings here.
folder: "/{{datacenter}}/vm" | ||
template: "{{ template }}" | ||
name: "{{ vm_name }}" | ||
cluster: "DC1_C1" |
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.
No need to quote strings here.
name: "{{ vm_name }}" | ||
cluster: "DC1_C1" | ||
networks: | ||
- name: "VM Network" |
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.
No need to quote strings here.
This fix adds dns_suffix as a list of domain suffixes and also updates documentation and example. Fixes: ansible#42229 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
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.
LGTM
- name: VM Network | ||
ip: 192.168.10.11 | ||
netmask: 255.255.255.0 | ||
wait_for_ip_address: True |
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.
We standardized to using yes/no booleans in documentation (mostly because it is easier to read and reflects programming less).
@dagwieers Thanks for the reviews. |
SUMMARY
This fix adds dns_suffix as a list of domain suffixes and
also updates documentation and example.
Fixes: #42229
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/cloud/vmware/vmware_guest.py
ANSIBLE VERSION