-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iosxe_restconf code for TACACS Server #169
Comments
Hi @ipeph, a question of fact: Does this dedicated resource work with your setup at all?: https://registry.terraform.io/providers/CiscoDevNet/iosxe/latest/docs/resources/tacacs_server |
As @jabielecki mentioned, the dedicated resource would be the preferred method of configuration. When using resource "iosxe_restconf" "aaa_server" {
path = "Cisco-IOS-XE-native:native/tacacs"
lists = [
{
name = "Cisco-IOS-XE-aaa:server"
key = "name"
items = [
{
name = "ISE3"
"address/ipv4" = "3.3.3.3"
"key/key" = "ABCDEFG"
}
]
}
]
} |
Hi @jabielecki, yes correct i could use that but i had some problem using this resource.
Output
Sometimes the state is not sync because terraform sometimes read the encypted value of tacacs so i though i could use the iosxe_restconf resource directly. |
Hi @danischm, Thanks this is work perfectly like charm. And i have some request if its ok with you, this example is not listed on the documentation, maybe if this example can be added on the documentation. Thanks. |
Hi @danischm, I have another question. https://{{host}}:{{port}}/restconf/data/Cisco-IOS-XE-native:native/aaa/authenticaiton
How i can translate this into correct terraform code ? I tried this 2 code below, and having an error after applying the code.
output:
2nd code
output
|
Hi I have this JSON result from tacacs API..
How i can translate this code above to use iosxe_restconf, because i want to create another line of ISE config.
I'm using this code below but its failed.
Error result :
Thanks.
The text was updated successfully, but these errors were encountered: