Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

netascode/terraform-aci-date-time-policy

Tests

This module is no longer maintained as it has been integrated into the nac-aci module.

Terraform ACI Date Time Policy Module

Manages ACI Date Time Policy

Location in GUI: Fabric » Fabric Policies » Fabric Policies » Policies » Pod » Date and Time

Examples

module "aci_date_time_policy" {
  source  = "netascode/date-time-policy/aci"
  version = ">= 0.2.0"

  name                           = "DATE1"
  apic_ntp_server_master_stratum = 10
  ntp_admin_state                = false
  ntp_auth_state                 = true
  apic_ntp_server_master_mode    = true
  apic_ntp_server_state          = true
  ntp_servers = [{
    hostname_ip   = "100.1.1.1"
    preferred     = true
    mgmt_epg_type = "inb"
    mgmt_epg_name = "INB1"
    auth_key_id   = 1
  }]
  ntp_keys = [{
    id        = 1
    key       = "SECRETKEY"
    auth_type = "sha1"
    trusted   = true
  }]
}

Requirements

Name Version
terraform >= 1.3.0
aci >= 2.0.0

Providers

Name Version
aci >= 2.0.0

Inputs

Name Description Type Default Required
name Date time policy Name. string n/a yes
apic_ntp_server_master_stratum APIC NTP server master stratum. Minimum value: 1. Maximum value: 14. number 8 no
ntp_admin_state NTP admin state. bool true no
ntp_auth_state NTP authentication state. bool false no
apic_ntp_server_master_mode APIC NTP server master mode. bool false no
apic_ntp_server_state APIC NTP server state. bool false no
ntp_servers List of NTP servers. Default value preferred: false. Choices mgmt_epg_type: inb, oob. Default value mgmt_epg_type: inb. Allowed values auth_key_id: 1-65535.
list(object({
hostname_ip = string
preferred = optional(bool, false)
mgmt_epg_type = optional(string, "inb")
mgmt_epg_name = optional(string)
auth_key_id = optional(number)
}))
[] no
ntp_keys List of keys. Allowed values id: 1-65535. Choices auth_type: md5, sha1.
list(object({
id = number
key = string
auth_type = string
trusted = bool
}))
[] no

Outputs

Name Description
dn Distinguished name of datetimePol object.
name Date time policy name.

Resources

Name Type
aci_rest_managed.datetimeNtpAuthKey resource
aci_rest_managed.datetimeNtpProv resource
aci_rest_managed.datetimePol resource
aci_rest_managed.datetimeRsNtpProvToEpg resource
aci_rest_managed.datetimeRsNtpProvToNtpAuthKey resource