This is a first commit of self contained PowerShell scripts in the Deployment directory.
# See the LICENSE file in the project root for more information.
#
-# CoreFX - Net configuration
+# Libraries - Net configuration
#
# -- Machine Information
#
# A Windows Server SKU hosting Active Directory services. This machine will become the Domain Controller:
-$COREFX_NET_AD_Machine = "" #Example: "TESTAD"
-$COREFX_NET_AD_MachineIP = "" #Example: "192.168.0.1" - must be a Static IPv4 address.
+$LIBRARIES_NET_AD_MACHINE = "" #Example: "TESTAD"
+$LIBRARIES_NET_AD_MACHINEIP = "" #Example: "192.168.0.1" - must be a Static IPv4 address.
# A Windows Client or Server SKU hosting the IIS Server. This machine will be joined to the Domain.
-$COREFX_NET_IISSERVER_Machine = "" #Example: "TESTIIS"
-$COREFX_NET_IISSERVER_MachineIP = "" #Example: "192.168.0.1" - must be a Static IPv4 address.
+$LIBRARIES_NET_IISSERVER_MACHINE = "" #Example: "TESTIIS"
+$LIBRARIES_NET_IISSERVER_MACHINEIP = "" #Example: "192.168.0.1" - must be a Static IPv4 address.
-# A Windows Client or Server SKU hosting the corefx repo. This machine will be joined to the Domain.
-$COREFX_NET_CLIENT_Machine = "" #Example: "TESTCLIENT"
+# A Windows Client or Server SKU hosting the runtime repo. This machine will be joined to the Domain.
+$LIBRARIES_NET_CLIENT_MACHINE = "" #Example: "TESTCLIENT"
# -- Test Parameters
# For security reasons, it's advisable that the default username/password pairs below are changed regularly.
$script:domainName = "corp.contoso.com"
-$script:domainNetbios = "corefx-net-ad"
+$script:domainNetbios = "libraries-net-ad"
$script:domainUserName = "testaduser"
$script:domainUserPassword = "Test-ADPassword"
$script:iisServerFQDN = "testserver.contoso.com"
$script:PreRebootRoles = @(
- @{Name = "COREFX_NET_AD_CLIENT"; Script = "setup_activedirectory_client.ps1"; MachineName = $COREFX_NET_IISSERVER_Machine},
- @{Name = "COREFX_NET_AD_CLIENT"; Script = "setup_activedirectory_client.ps1"; MachineName = $COREFX_NET_CLIENT_Machine},
- @{Name = "COREFX_NET_AD_DC"; Script = "setup_activedirectory_domaincontroller.ps1"; MachineName = $COREFX_NET_AD_Machine; MachineIP = $COREFX_NET_AD_MachineIP}
+ @{Name = "LIBRARIES_NET_AD_CLIENT"; Script = "setup_activedirectory_client.ps1"; MachineName = $LIBRARIES_NET_IISSERVER_MACHINE},
+ @{Name = "LIBRARIES_NET_AD_CLIENT"; Script = "setup_activedirectory_client.ps1"; MachineName = $LIBRARIES_NET_CLIENT_MACHINE},
+ @{Name = "LIBRARIES_NET_AD_DC"; Script = "setup_activedirectory_domaincontroller.ps1"; MachineName = $LIBRARIES_NET_AD_MACHINE; MachineIP = $LIBRARIES_NET_AD_MACHINEIP}
)
$script:Roles = @(
- @{Name = "COREFX_NET_IISSERVER"; Script = "setup_iisserver.ps1"; MachineName = $COREFX_NET_IISSERVER_Machine; MachineIP = $COREFX_NET_IISSERVER_MachineIP},
- @{Name = "COREFX_NET_CLIENT"; Script = "setup_client.ps1"; MachineName = $COREFX_NET_CLIENT_Machine},
- @{Name = "COREFX_NET_AD_DC"; Script = "setup_activedirectory_domaincontroller.ps1"; MachineName = $COREFX_NET_AD_Machine; MachineIP = $COREFX_NET_AD_MachineIP}
+ @{Name = "LIBRARIES_NET_IISSERVER"; Script = "setup_iisserver.ps1"; MachineName = $LIBRARIES_NET_IISSERVER_MACHINE; MachineIP = $LIBRARIES_NET_IISSERVER_MACHINEIP},
+ @{Name = "LIBRARIES_NET_CLIENT"; Script = "setup_client.ps1"; MachineName = $LIBRARIES_NET_CLIENT_MACHINE},
+ @{Name = "LIBRARIES_NET_AD_DC"; Script = "setup_activedirectory_domaincontroller.ps1"; MachineName = $LIBRARIES_NET_AD_MACHINE; MachineIP = $LIBRARIES_NET_AD_MACHINEIP}
)
{
return Invoke-Command -Session $s `
{
- $destPath = Join-Path $env:SystemDrive "COREFX_NET_Scripts"
+ $destPath = Join-Path $env:SystemDrive "LIBRARIES_NET_SCRIPTS"
mkdir $destPath -ErrorAction SilentlyContinue | Out-Null
return $destPath
}
Function Install
{
- Write-Host -ForegroundColor Cyan "Install/Update CoreFX Networking multi-machine prerequisites"
+ Write-Host -ForegroundColor Cyan "Install/Update Libraries Networking multi-machine prerequisites"
Write-Host
CheckRoles
Function Uninstall
{
- Write-Host -ForegroundColor Cyan "Uninstall CoreFX Networking multi-machine prerequisites"
+ Write-Host -ForegroundColor Cyan "Uninstall Libraries Networking multi-machine prerequisites"
Write-Host
CheckRoles
Write-Host
# Imports:
. .\setup_common.ps1
-$script:COREFX_ROLE_NAME = "COREFX_NET_AD_CLIENT"
+$script:LIBRARIES_ROLE_NAME = "LIBRARIES_NET_AD_CLIENT"
Function ConfigureDNS
{
Write-Host -ForegroundColor Cyan "Configuring DNS"
- $dcRole = GetRole "COREFX_NET_AD_DC"
+ $dcRole = GetRole "LIBRARIES_NET_AD_DC"
if (-not (Test-Connection $dcRole.MachineIP))
{
Function Install
{
- Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:COREFX_ROLE_NAME)"
+ Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)"
CheckPreRebootMachineInfo
ConfigureDNS
Function Uninstall
{
- Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)."
EnvironmentCheckUninstallRoleStatus
# Import configuration.
. .\setup_common.ps1
-$script:COREFX_ROLE_NAME = "COREFX_NET_AD_DC"
+$script:LIBRARIES_ROLE_NAME = "LIBRARIES_NET_AD_DC"
Function EnableAD
{
{
Write-Host -ForegroundColor Cyan "Configuring DNS."
- $iisServer = GetRole "COREFX_NET_IISSERVER"
+ $iisServer = GetRole "LIBRARIES_NET_IISSERVER"
$serverName = ($script:iisServerFQDN).Split('.')[0];
$zoneName = ($script:iisServerFQDN).Substring($serverName.Length + 1)
Function Install
{
- Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)."
if ((-not (EnvironmentIsRoleInstalled)) -and (-not (EnvironmentIsRoleRebootPending)))
{
ConfigureDNS
Enable-PSRemoting
EnvironmentSetInstalledRoleStatus
- Write-Host -ForegroundColor Cyan "Prerequisites installed for $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Prerequisites installed for $($script:LIBRARIES_ROLE_NAME)."
Write-Host
}
}
Function Uninstall
{
- Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)."
EnvironmentCheckUninstallRoleStatus
EnvironmentRemoveRoleStatus
. .\setup_common.ps1
. .\setup_certificates.ps1
-$script:COREFX_ROLE_NAME = "COREFX_NET_CLIENT"
+$script:LIBRARIES_ROLE_NAME = "LIBRARIES_NET_CLIENT"
Function InstallClientEnvironmentConfiguration
{
Function Install
{
- Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)."
CheckMachineInfo
InstallClientCertificates
Function Uninstall
{
- Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:COREFX_ROLE_NAME)."
+ Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)."
EnvironmentCheckUninstallRoleStatus
RemoveClientCertificates
#Requires -RunAsAdministrator
# Firewall configuration
-$script:firewallGroup = "CoreFX Testing"
+$script:firewallGroup = "Libraries Testing"
$script:firewallRules = @(
- @{Name = "CoreFXNet - HTTP 80"; Port = 80},
- @{Name = "CoreFXNet - HTTP 443"; Port = 443}
+ @{Name = "LibariesNet - HTTP 80"; Port = 80},
+ @{Name = "LibrariesNet - HTTP 443"; Port = 443}
)
Function InstallServerFirewall
}
)
-$script:COREFX_ROLE_NAME = "COREFX_NET_IISSERVER"
+$script:LIBRARIES_ROLE_NAME = "LIBRARIES_NET_IISSERVER"
Function InstallIIS
{
Function Install
{
- Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:COREFX_ROLE_NAME)"
+ Write-Host -ForegroundColor Cyan "Installing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)"
CheckMachineInfo
InstallIIS
Function Uninstall
{
- Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:COREFX_ROLE_NAME)"
+ Write-Host -ForegroundColor Cyan "Removing prerequisites for test role: $($script:LIBRARIES_ROLE_NAME)"
EnvironmentCheckUninstallRoleStatus