diff --git a/README.md b/README.md index 1642048..d5ac052 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_linux_instance.yml b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_linux_instance.yml index 03a78e7..b78a2e9 100644 --- a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_linux_instance.yml +++ b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_linux_instance.yml @@ -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 diff --git a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_windows_instance.yml b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_windows_instance.yml index 7ddcf94..68b0760 100644 --- a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_windows_instance.yml +++ b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create_windows_instance.yml @@ -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 diff --git a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml index 0693716..bc0e6c4 100644 --- a/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml +++ b/molecule_vmware/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml @@ -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