Skip to content

Commit

Permalink
Citrix Files
Browse files Browse the repository at this point in the history
  • Loading branch information
tommcm committed Sep 19, 2018
1 parent 8e93735 commit 6055bc1
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 15 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified modules/Citrix.zip
Binary file not shown.
24 changes: 19 additions & 5 deletions modules/cwcXenDesktop/cwcXenDesktop.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,18 @@ function Install-VdaServer {
[Parameter(Position=9,Mandatory=$false)] [switch]$EnableRemoteAssistance=$false,
[Parameter(Position=10,Mandatory=$false)] [switch]$MasterImage=$false,
[Parameter(Position=11,Mandatory=$false)] [switch]$EnableRemoteManagement=$false,
[Parameter(Position=12,Mandatory=$false)] [string]$ExcludedPackages = $null
[Parameter(Position=12,Mandatory=$false)] [string]$ExcludedPackages = $null,
# [Parameter(Position=12,Mandatory=$false)] [string]$InstallCitrixFilesForWindows=$true
[Parameter(Position=12,Mandatory=$false)] [string]$IncludeAdditional = $null
)
# Get args for installing the VDA Server.
$installargs = cwcXenDesktop\Get-VDAInstallArgs -InstallVDAWorkstation:$false -InstallPvd:$InstallPvd `
-InstallPlugin:$InstallPlugin -EnableHDXPorts:$EnableHDXPorts `
-Reboot:$Reboot -LogPath $LogPath `
-Controllers $Controllers -UseIbizaVdaArgs:$false -EnableRemoteAssistance:$EnableRemoteAssistance `
-MasterImage:$MasterImage -InstallVDAServer:$InstallVDAServer -XAServerLocation $XAServerLocation `
-EnableRemoteManagement:$EnableRemoteManagement -ExcludedPackages:$ExcludedPackages
-EnableRemoteManagement:$EnableRemoteManagement -ExcludedPackages:$ExcludedPackages -IncludeAdditional:$IncludeAdditional
# -InstallCitrixFilesForWindows:$InstallCitrixFilesForWindows
If ($Reboot){
$expectedExitCode = 0 # reboot expected to be handled by the installer, in this case windows is shutting down
# the process -Wait flag is set to not wait and return 0 immediately for test driven reboot
Expand Down Expand Up @@ -477,8 +480,9 @@ function Get-VDAInstallArgs {
[Parameter(Position=12,Mandatory=$false)] [switch]$EnableRemoteManagement,
[Parameter(Position=13,Mandatory=$false)] [string]$ExcludedPackages = $null,
[Parameter(Position=14,Mandatory=$false)] [switch]$UseXenAppBranding = $false,
[Parameter(Position=15,Mandatory=$false)] [string]$InstallDir

[Parameter(Position=15,Mandatory=$false)] [string]$InstallDir,
# [Parameter(Position=16,Mandatory=$false)] [string]$InstallCitrixFilesForWindows
[Parameter(Position=16,Mandatory=$false)] [string]$IncludeAdditional = $null
)

Write-Verbose "Installer logs located in:$LogPath"
Expand Down Expand Up @@ -533,7 +537,7 @@ function Get-VDAInstallArgs {
$components += '"'
$installargs.Add($components) | Out-Null
# END components

if ($InstallPvd) {
$installargs.Add("/BASEIMAGE") | Out-Null
}
Expand Down Expand Up @@ -582,6 +586,16 @@ function Get-VDAInstallArgs {
}
write-Host "Excluding packages: $ExcludedPackages"
$installargs.Add("/EXCLUDE $ExcludedPackages") | Out-Null
}

if (-not([string]::isNullOrempty($IncludeAdditional))) {
write-verbose "Requested to include these additional packages: '$IncludeAdditional'"
# always enclose the string in double-quotes
if ($IncludeAdditional[0] -ne '"') {
$IncludeAdditional = """$IncludeAdditional"""
}
write-Host "Include Additional: $IncludeAdditional"
$installargs.Add("/includeadditional $IncludeAdditional") | Out-Null
}
Write-Verbose "Install Arguments: $($installargs)"
return $installargs.ToArray()
Expand Down
5 changes: 3 additions & 2 deletions scripts/Install-VDA.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ try {
$VDA_Controller1 = cwcTools\New-FQDN -ComputerName $VDA_Controller1 -DomainName $VDA_DNSDomainName
$VDA_Controller2 = cwcTools\New-FQDN -ComputerName $VDA_Controller2 -DomainName $VDA_DNSDomainName
$VDA_Controllers = "$VDA_Controller1,$VDA_Controller2"
$IncludeAdditional = "Citrix Files for Windows"

Invoke-Command -ComputerName localhost -ScriptBlock {
Start-Process -FilePath attrib.exe -LoadUserProfile
cwcXenDesktop\Install-VdaServer -InstallerPath $args[0] -installPvd:$false -Controllers $args[1] -EnableRemoteAssistance -verbose
} -argumentlist @($setupPath, $VDA_Controllers)
cwcXenDesktop\Install-VdaServer -InstallerPath $args[0] -installPvd:$false -Controllers $args[1] -EnableRemoteAssistance -IncludeAdditional $args[2] -verbose
} -argumentlist @($setupPath, $VDA_Controllers, $IncludeAdditional)

cwcOS-Tools\Dismount-Iso $driveLetter

Expand Down
4 changes: 4 additions & 0 deletions templates/citrix-virtualapps-service-connectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ Resources:
Value: !Sub '${CitrixCloudConnector1HostName}-${QSDeploymentID}'
- Key: App
Value: Citrix
- Key: QSDeplomentID
Value: !Sub ${QSDeploymentID}

CitrixCloudConnector2:
Type: 'AWS::EC2::Instance'
Expand Down Expand Up @@ -517,6 +519,8 @@ Resources:
Value: !Sub '${CitrixCloudConnector2HostName}-${QSDeploymentID}'
- Key: App
Value: Citrix
- Key: QSDeplomentID
Value: !Sub ${QSDeploymentID}

CitrixCloudConnector1WaitHandle:
Type: 'AWS::CloudFormation::WaitConditionHandle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,15 @@ Resources:
https://${QSS3BucketName}.s3.amazonaws.com/${QSS3KeyPrefix}templates/citrix-virtualapps-service-qsdeploymentid.yaml

CitrixCloudSecurityGroups:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: !Sub >-
Type: AWS::CloudFormation::Stack
DependsOn: 'QSDeploymentID'
Properties:
TemplateURL: !Sub >-
https://${QSS3BucketName}.s3.amazonaws.com/${QSS3KeyPrefix}templates/citrix-virtualapps-service-securitygroups.yaml
Parameters:
VPCID: !Ref VPCID
BastionSecurityGroupID: !Ref BastionSecurityGroupID
Parameters:
VPCID: !Ref VPCID
BastionSecurityGroupID: !Ref BastionSecurityGroupID
QSDeploymentID: !GetAtt QSDeploymentID.Outputs.ParameterQSDeploymentID

CitrixCloudConnectors:
Type: 'AWS::CloudFormation::Stack'
Expand Down
12 changes: 10 additions & 2 deletions templates/citrix-virtualapps-service-securitygroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ Parameters:
BastionSecurityGroupID:
Description: ID of the Bastion Security Group (e.g., sg-7f16e910),
Type: 'AWS::EC2::SecurityGroup::Id'
QSDeploymentID:
Type: 'AWS::SSM::Parameter::Value<String>'

Resources:
CCSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupName: !Sub 'SG-CitrixCloudConnectors-${QSDeploymentID}'
GroupDescription: Security group which allows access to the Cloud Connectors
VpcId: !Ref VPCID
SecurityGroupIngress:
Expand All @@ -20,9 +23,11 @@ Resources:
ToPort: 3389
Tags:
- Key: Name
Value: 'AWS Quick Start Citrix Cloud Connectors'
Value: !Sub 'AWS Quick Start Citrix Cloud Connector (QSDeployment ID: ${QSDeploymentID})'
- Key: App
Value: Citrix
- Key: QSDeplomentID
Value: !Sub ${QSDeploymentID}

CCSecurityGroupTCPIngress:
Type: AWS::EC2::SecurityGroupIngress
Expand Down Expand Up @@ -56,6 +61,7 @@ Resources:
VDASecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupName: !Sub 'SG-CitrixVDA-${QSDeploymentID}'
GroupDescription: Security group which allows access to the VDA Workers
VpcId: !Ref VPCID
SecurityGroupIngress:
Expand Down Expand Up @@ -85,9 +91,11 @@ Resources:
ToPort: 3389
Tags:
- Key: Name
Value: 'AWS Quick Start Citrix VDA'
Value: !Sub 'AWS Quick Start Citrix VDA (QSDeployment ID: ${QSDeploymentID})'
- Key: App
Value: Citrix
- Key: QSDeplomentID
Value: !Sub ${QSDeploymentID}

VDASecurityGroupTCPIngress:
Type: AWS::EC2::SecurityGroupIngress
Expand Down
2 changes: 2 additions & 0 deletions templates/citrix-virtualapps-service-vda-serveros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ Resources:
Value: !Sub '${CitrixVDAHostName}-${QSDeploymentID}'
- Key: App
Value: Citrix
- Key: QSDeplomentID
Value: !Sub ${QSDeploymentID}
UserData: !Base64
'Fn::Join':
- ''
Expand Down

0 comments on commit 6055bc1

Please sign in to comment.