mirror of
https://github.com/jbowdre/vRealize.git
synced 2024-12-12 08:52:20 +00:00
Update 03_create_dns_record.js
This commit is contained in:
parent
81162ccb49
commit
7ee71ee5ec
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ var ipAddress = inputProperties.addresses[0];
|
||||||
var created = false;
|
var created = false;
|
||||||
if (staticDns == "true" && dnsHost.supportedDomains.indexOf(dnsDomain) >= 0) {
|
if (staticDns == "true" && dnsHost.supportedDomains.indexOf(dnsDomain) >= 0) {
|
||||||
System.log("Attempting to create DNS record for " + hostname + "." + ipAddress + "...");
|
System.log("Attempting to create DNS record for " + hostname + "." + ipAddress + "...");
|
||||||
var sshSession = new SSHSession(dnsHost.sshHost, dnsHost_sshUser);
|
var sshSession = new SSHSession(dnsHost.sshHost, dnsHost.sshUser);
|
||||||
System.debug("Connecting to " + dnsHost.sshHost + "...");
|
System.debug("Connecting to " + dnsHost.sshHost + "...");
|
||||||
sshSession.connectWithPassword(dnsHost.sshPass);
|
sshSession.connectWithPassword(dnsHost.sshPass);
|
||||||
for each (dnsServer in dnsHost.dnsServers) {
|
for each (dnsServer in dnsHost.dnsServers) {
|
||||||
|
|
Loading…
Reference in a new issue