-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathiosxe_service.tf
More file actions
30 lines (29 loc) · 3.18 KB
/
Copy pathiosxe_service.tf
File metadata and controls
30 lines (29 loc) · 3.18 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
resource "iosxe_service" "service" {
for_each = { for device in local.devices : device.name => device if try(local.device_config[device.name].service, null) != null }
device = each.value.name
pad = try(local.device_config[each.value.name].service.pad, null)
password_encryption = try(local.device_config[each.value.name].service.password_encryption, null)
password_recovery = try(local.device_config[each.value.name].service.password_recovery, null)
timestamps = try(local.device_config[each.value.name].service.timestamps.enable, null)
timestamps_debug = try(local.device_config[each.value.name].service.timestamps.debug, null)
timestamps_debug_datetime = try(local.device_config[each.value.name].service.timestamps.debug_datetime, null)
timestamps_debug_datetime_msec = try(local.device_config[each.value.name].service.timestamps.debug_datetime_msec, null)
timestamps_debug_datetime_localtime = try(local.device_config[each.value.name].service.timestamps.debug_datetime_localtime, null)
timestamps_debug_datetime_show_timezone = try(local.device_config[each.value.name].service.timestamps.debug_datetime_show_timezone, null)
timestamps_debug_datetime_year = try(local.device_config[each.value.name].service.timestamps.debug_datetime_year, null)
timestamps_debug_uptime = try(local.device_config[each.value.name].service.timestamps.debug_uptime, null)
timestamps_log = try(local.device_config[each.value.name].service.timestamps.log, null)
timestamps_log_datetime = try(local.device_config[each.value.name].service.timestamps.log_datetime, null)
timestamps_log_datetime_msec = try(local.device_config[each.value.name].service.timestamps.log_datetime_msec, null)
timestamps_log_datetime_localtime = try(local.device_config[each.value.name].service.timestamps.log_datetime_localtime, null)
timestamps_log_datetime_show_timezone = try(local.device_config[each.value.name].service.timestamps.log_datetime_show_timezone, null)
timestamps_log_datetime_year = try(local.device_config[each.value.name].service.timestamps.log_datetime_year, null)
timestamps_log_uptime = try(local.device_config[each.value.name].service.timestamps.log_uptime, null)
dhcp = try(local.device_config[each.value.name].service.dhcp, null)
dhcp_config = try(local.device_config[each.value.name].service.dhcp_config, null)
tcp_keepalives_in = try(local.device_config[each.value.name].service.tcp_keepalives_in, null)
tcp_keepalives_out = try(local.device_config[each.value.name].service.tcp_keepalives_out, null)
compress_config = try(local.device_config[each.value.name].service.compress_config, null)
sequence_numbers = try(local.device_config[each.value.name].service.sequence_numbers, null)
call_home = try(local.device_config[each.value.name].service.call_home, null)
}