This Terraform module allows you to manage resources in Citrix StoreFront.
- Terraform 0.14.x
- The machine running the provider needs to be running on Windows 10+ or Server 2016+
- The machine running the provider needs WinRM access to the specified StoreFront server (Microsoft docs on how to enable WinRM)
If running the StoreFront provider on a machine other than the machine where StoreFront is installed, please provide the Active Directory Admin credentials in either environment variables or provider configuration
SF_COMPUTER_NAME
:- The name of the remote computer where the StoreFront server is running.
SF_AD_ADMAIN_USERNAME
:- The Active Directory Admin username to connect to the remote PowerShell of the StoreFront Server machine.
SF_AD_ADMAIN_PASSWORD
:- The Active Directory Admin password to connect to the remote PowerShell of the StoreFront server machine.
provider "citrix" {
hostname =
customer_id =
environment =
client_id =
client_secret =
disable_ssl_verification =
storefront_remote_host = {
computer_name = "{Name of the remote computer where the StoreFront located}"
ad_admin_username ="{Active Directory Admin Username}"
ad_admin_password ="{Active Directory Admin Password}"
}
}
Example Usage of the StoreFront Terraform Configuration
resource citrix_stf_deployment "testSTFDeployment" {
site_id = 1
host_base_url = "https://example3.storefront.com"
}
resource "citrix_stf_authentication_service" "example-stf-authentication-service" {
site_id = "${citrix_stf_deployment.testSTFDeployment.site_id}"
friendly_name = "Auth"
virtual_path = "/Citrix/Authentication"
}
resource "citrix_stf_store_service" "example-stf-store-service" {
site_id = "${citrix_stf_deployment.testSTFDeployment.site_id}"
virtual_path = "/Citrix/Store"
friendly_name = "Store"
authentication_service = "${citrix_stf_authentication_service.example-stf-authentication-service.virtual_path}"
farm_config = {
farm_name = "Controller"
farm_type = "XenDesktop"
servers = ["cvad.storefront.com"]
}
}
resource "citrix_stf_webreceiver_service" "example-stf-webreceiver-service"{
site_id = "${citrix_stf_deployment.testSTFDeployment.site_id}"
virtual_path = "/Citrix/StoreWeb"
friendly_name = "Receiver2"
store_service = "${citrix_stf_store_service.example-stf-store-service.virtual_path}"
authentication_methods = [
"ExplicitForms",
]
plugin_assistant = {
enabled = true
html5_single_tab_launch = true
upgrade_at_login = true
html5_enabled = "Off"
}
}