Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a2b3f4
commit c1c455c
Showing
59 changed files
with
2,612 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "citrix_admin_user Resource - citrix" | ||
subcategory: "" | ||
description: |- | ||
Manages an administrator user for on-premise environment. | ||
--- | ||
|
||
# citrix_admin_user (Resource) | ||
|
||
Manages an administrator user for on-premise environment. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "citrix_admin_user" "example-admin-user" { | ||
name = "example-admin-user" | ||
domain_name = "example-domain" | ||
rights = [ | ||
{ | ||
role = "Delivery Group Administrator", | ||
scope = "All" | ||
} | ||
] | ||
is_enabled = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `domain_name` (String) Name of the domain that the user is a part of. For example, if the domain is `example.com`, then provide the value `example` for this field. | ||
- `name` (String) Name of an existing user in the active directory. | ||
- `rights` (Attributes List) List of rights to be associated with the admin user. (see [below for nested schema](#nestedatt--rights)) | ||
|
||
### Optional | ||
|
||
- `is_enabled` (Boolean) Flag to determine if the administrator is to be enabled or not. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) ID of the admin user. | ||
|
||
<a id="nestedatt--rights"></a> | ||
### Nested Schema for `rights` | ||
|
||
Required: | ||
|
||
- `role` (String) Name of the role to be associated with the admin user. | ||
- `scope` (String) Name of the scope to be associated with the admin user. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Admin User can be imported by specifying the SID | ||
terraform import citrix_admin_user.example-admin-user S-1-5-21-0000000000-0000000000-0000000000-0000 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
resource "citrix_delivery_group" "example-delivery-group" { | ||
name = "example-delivery-group" | ||
associated_machine_catalogs = [ | ||
{ | ||
machine_catalog = citrix_machine_catalog.example-aws-catalog.id | ||
machine_count = 1 | ||
} | ||
] | ||
desktops = [ | ||
{ | ||
published_name = "Example Desktop" | ||
description = "Desription for example desktop" | ||
restricted_access_users = { | ||
allow_list = [ | ||
"user1@example.com" | ||
] | ||
block_list = [ | ||
"user2@example.com", | ||
] | ||
} | ||
enabled = true | ||
enable_session_roaming = false | ||
} | ||
|
||
] | ||
autoscale_settings = { | ||
autoscale_enabled = true | ||
power_time_schemes = [ | ||
{ | ||
days_of_week = [ | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday" | ||
] | ||
name = "weekdays test" | ||
display_name = "weekdays schedule" | ||
peak_time_ranges = [ | ||
"09:00-17:00" | ||
] | ||
pool_size_schedules = [ | ||
{ | ||
time_range = "00:00-00:00", | ||
pool_size = 1 | ||
} | ||
] | ||
pool_using_percentage = false | ||
}, | ||
] | ||
} | ||
restricted_access_users = { | ||
allow_list = [ | ||
"user1@example.com" | ||
] | ||
block_list = [ | ||
"user2@example.com", | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# AWS Hypervisor | ||
resource "citrix_aws_hypervisor" "example-aws-hypervisor" { | ||
name = "example-aws-hyperv" | ||
zone = citrix_zone.example-zone.id | ||
api_key = "{AWS API access key}" | ||
secret_key = "{AWS API secret key}" | ||
region = "{AWS region}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
resource "citrix_machine_catalog" "example-aws-catalog" { | ||
name = "example-aws-catalog" | ||
description = "Example multi-session catalog on AWS hypervisor" | ||
allocation_type = "Random" | ||
session_support = "MultiSession" | ||
is_power_managed = true | ||
is_remote_pc = false | ||
provisioning_type = "MCS" | ||
zone = citrix_zone.example-zone.id | ||
provisioning_scheme = { | ||
hypervisor = citrix_aws_hypervisor.example-aws-hypervisor.id | ||
hypervisor_resource_pool = citrix_aws_hypervisor_resource_pool.example-aws-rp.id | ||
identity_type = "ActiveDirectory" | ||
machine_domain_identity = { | ||
domain = "<DomainFQDN>" | ||
domain_ou = "<DomainOU>" | ||
service_account = "<Admin Username>" | ||
service_account_password = "<Admin Password>" | ||
} | ||
aws_machine_config = { | ||
image_ami = "<AWS AMI ID>" | ||
master_image = "<AWS AMI Name>" | ||
service_offering = "<AWS EC2 Service Offering>" | ||
} | ||
number_of_total_machines = 1 | ||
network_mapping = { | ||
network_device = "0" | ||
network = "<AWS Subnet Mask>" | ||
} | ||
machine_account_creation_rules = { | ||
naming_scheme = "ctx-aws-###" | ||
naming_scheme_type = "Numeric" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
resource "citrix_aws_hypervisor_resource_pool" "example-aws-rp" { | ||
name = "example-aws-rp" | ||
hypervisor = citrix_aws_hypervisor.example-aws-hypervisor.id | ||
subnets = [ | ||
"<AWS Subnet Mask>", | ||
] | ||
vpc = "<AWS VPC Name>" | ||
availability_zone = "<AWS Availability Zone>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// On-Premises customer provider settings | ||
// Please comment out / remove this provider settings block if you are a Citrix Cloud customer | ||
provider "citrix" { | ||
hostname = "<DDC public IP / hostname>" | ||
client_id = "<DomainFqdn>\\<Admin Username>" | ||
client_secret = "<Admin Passwd>" | ||
disable_ssl_verification = true # omit this field if DDC has valid SSL certificate configured | ||
} | ||
|
||
// Citrix Cloud customer provider settings | ||
// Please comment out / remove this provider settings block if you are an On-Premises customer | ||
provider "citrix" { | ||
customer_id = "" # set your customer id | ||
client_id = "" | ||
client_secret = "" # API key client id and secret are needed to interact with Citrix Cloud APIs. These can be created/found under Identity and Access Management > API Access | ||
environment = "Production" # use "Japan" for Citrix Cloud customers in Japan region | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
terraform { | ||
required_version = ">= 1.4.0" | ||
|
||
required_providers { | ||
citrix = { | ||
source = "citrix/citrix" | ||
version = ">=0.5.1" | ||
} | ||
} | ||
|
||
backend "local" {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource "citrix_zone" "example-zone" { | ||
name = "example zone" | ||
description = "description for example zone" | ||
} |
Oops, something went wrong.