feat(stagging): number workflow and add DNS reservations in 0.3.0
This commit is contained in:
@@ -54,7 +54,7 @@ function Read-KisWorkbook([string]$Path) {
|
||||
foreach ($key in $sheets.Staging.Cells.Keys) {
|
||||
if ($key -notmatch '^A(\d+)$') { continue }
|
||||
$row = $Matches[1]; $name = $sheets.Staging.Cells[$key]
|
||||
if ($name -notin @('Projektname','Windows-Server-Version','Netzwerkkarte','GETAC-IP','Netzpräfix','DHCP von','DHCP bis','Medienordner','Proxmox-Medium','ESXi-Medium','Admin-E-Mail')) { continue }
|
||||
if ($name -notin @('Projektname','Windows-Server-Version','Netzwerkkarte','GETAC-IP','Netzpräfix','DHCP von','DHCP bis','Medienordner','Proxmox-Medium','ESXi-Medium','Admin-E-Mail','DNS-Zone','GETAC-Name')) { continue }
|
||||
if ($sheets.Staging.Formulas.ContainsKey("B$row")) { throw "Staging!B${row}: Eingabeformeln sind nicht erlaubt." }
|
||||
if ($settings.ContainsKey($name)) { throw "Doppelte Staging-Einstellung: $name" }
|
||||
$settings[$name] = [string]$sheets.Staging.Cells["B$row"]
|
||||
@@ -75,6 +75,10 @@ function Read-KisWorkbook([string]$Path) {
|
||||
if ($sheets.Server.Formulas.ContainsKey($cell)) { throw "Server!${cell}: Eingabeformeln sind nicht erlaubt." }
|
||||
$values[$expected[$i]] = ([string]$sheets.Server.Cells[$cell]).Trim()
|
||||
}
|
||||
if ($sheets.Server.Cells['N6'] -eq 'PXE-IP') {
|
||||
if ($sheets.Server.Formulas.ContainsKey("N$r")) { throw "Server!N${r}: Eingabeformeln sind nicht erlaubt." }
|
||||
$values['PXE-IP']=([string]$sheets.Server.Cells["N$r"]).Trim()
|
||||
}
|
||||
if ($values.Installieren -notin @('','JA','NEIN')) { throw "Server Zeile ${r}: Installieren muss JA oder NEIN sein." }
|
||||
if ($values.Installieren -eq 'JA') { $values.Row = $r; $servers += $values }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user