-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreate_platform_finalize.pkr.hcl
More file actions
63 lines (55 loc) · 1.93 KB
/
Copy pathcreate_platform_finalize.pkr.hcl
File metadata and controls
63 lines (55 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright (c) Citrix, Inc.
packer {
required_plugins {
citrix = {
version = ">= 1.0.0"
source = "github.com/citrix/citrix"
}
}
}
variable "elm_password" {
type = string
sensitive = true
}
variable "vm_password" {
type = string
sensitive = true
}
source "citrix-applayering" "create_platform_final" {
elm_server = "your-elm-server.example.com"
elm_username = "Administrator"
elm_password = var.elm_password
insecure_connection = true
create_platform_layer {
# platform type IDs (required; use "None" to omit provisioning/broker)
hypervisor_platform = "vsphere"
provisioning_platform = "MCS"
broker_platform = "None"
os_layer_name = "MyOsLayer"
os_layer_version_name = "v1.0"
layer_name = "MyPlatformLayer"
packaging_disk_file_name = "MyPlatformLayer_v1.0"
platform_connector_config_name = "MyConnectorConfig"
icon_id = 196608
version_name = "v1.0"
version_description = "Platform Layer v1.0"
version_size_gb = 10
comment = "Initial platform layer creation"
# skip_cleanup_on_failure = true # Set to true to skip cancelling the ELM work
# ticket on failure. By default (false), the work ticket is cancelled automatically
# when the build fails or is cancelled by the user.
}
communicator = "winrm"
winrm_username = "Administrator"
winrm_password = var.vm_password
}
build {
sources = [
"source.citrix-applayering.create_platform_final"
]
provisioner "citrix-layerartifact" {
# handle_run_once = true # Set to true to auto-process RunOnce registry entries.
# When false (default), the provisioner exits successfully if RunOnce entries
# are detected, leaving the user to handle them manually via the CE VM.
}
}