Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Add DNS nameservers configuration (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Hills <[email protected]>
  • Loading branch information
jibbajabber and adamhills authored Feb 17, 2021
1 parent 83fb5fd commit 0e85614
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ driver:
#connection: winrm # is the connection type
#winrm_transport: ntlm # is the authentication type
#winrm_server_cert_validation: ignore # is the server certificate validation mode
# The below list is possible to define DNS nameservers
#dns_servers:
# - "8.8.8.8"
# - "8.8.4.4"
platforms:
- name: instance1
template: CentOS7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
customization:
hostname: "{{ item.name }}"
password: "{{ molecule_yml.driver.vm_password }}"
dns_servers: "{{ molecule_yml.driver.dns_servers | default(omit) }}"
wait_for_ip_address: true
wait_for_customization: true
state: poweredon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
fullname: "{{ item.customization.fullname | default('molecule') }}"
orgname: "{{ item.customization.orgname | default('molecule') }}"
password: "{{ molecule_yml.driver.vm_password }}"
dns_servers: "{{ molecule_yml.driver.dns_servers | default(omit) }}"
wait_for_ip_address: true
wait_for_customization: true
state: poweredon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ driver:
#connection: winrm # is the connection type
#winrm_transport: ntlm # is the authentication type
#winrm_server_cert_validation: ignore # is the server certificate validation mode
# The below list is possible to define DNS nameservers
#dns_servers:
# - "8.8.8.8"
# - "8.8.4.4"
platforms:
- name: instance # is an instance name
template: change me to template name # is to be used as a template when cloning an instance
Expand Down

0 comments on commit 0e85614

Please sign in to comment.