-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpolicy_virtual_media.tf
More file actions
42 lines (38 loc) · 994 Bytes
/
Copy pathpolicy_virtual_media.tf
File metadata and controls
42 lines (38 loc) · 994 Bytes
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
variable "httpiso" {
type = object({
url = string
username = string
password = string
})
default = {
# url should be in the format of https://host.domain.com/path/file.iso with EITHER http or https
url = "https://host.local/path/file.iso"
username = ""
password = ""
}
}
resource "intersight_vmedia_policy" "vmedia_http_iso" {
name = "vmedia_iso"
dynamic "tags" {
for_each = local.tags
content {
key = tags.key
value = tags.value
}
}
organization {
moid = local.organization
}
enabled = true
encryption = true
low_power_usb = true
mappings {
authentication_protocol = "none"
device_type = "cdd"
file_location = var.httpiso.url
mount_protocol = lower(element(split(":", var.httpiso.url), 0))
password = var.httpiso.password
username = var.httpiso.username
volume_name = "IMC_DVD"
}
}