-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello!
I have two rSeries systems I try to configure with this provider. To set up VLANs and everything on both systems (without any config sync or so between them) I need the provider to be able to talk to both systems with the same provider. I tried using aliases which is a common approach with other providers:
provider "f5os" {
Dummy base provider not to be used, use the aliased ones
Needs to be here to avoid error in plan
username = "admin"
password = data.sops_file.credentials.data.f5os_password
host = local.rseries_systems.f5r1.host
disable_tls_verify = true
}
provider "f5os" {
alias = "f5r1"
username = "admin"
password = data.sops_file.credentials.data.f5os_password
host = local.rseries_systems.f5r1.host
disable_tls_verify = true
}
provider "f5os" {
alias = "f5r2"
username = "admin"
password = data.sops_file.credentials.data.f5os_password
host = local.rseries_systems.f5r2.host
disable_tls_verify = true
}
This does not work. With the above setup, all VLANs and up in the provider without alias, no matter if I use provider = f5os.f5r1 or fos.f5r2. Can this be fixed?
If I skip the "base" provider without alias the configuration fails in plan with errors:
Error: Missing 'host' in provider configuration
with provider["registry.terraform.io/f5networks/f5os"]
on line 0: While configuring the provider, 'host' was not found in the F5OS_HOST environment variable or provider configuration block host attribute.
Error: Missing 'username' in provider configuration
with provider["registry.terraform.io/f5networks/f5os"]
on line 0: While configuring the provider, username was not found in the F5OS_USERNAME environment variable or provider configuration block 'username' attribute.
Error: Missing 'password' in provider configuration
with provider["registry.terraform.io/f5networks/f5os"]
on line 0: While configuring the provider, 'password' was not found in the F5OS_PASSWORD environment variable or provider configuration block 'password' attribute.
Error: Get "https://:8888/restconf/data/openconfig-system:system/aaa": http: server gave HTTP response to HTTPS client
with provider["registry.terraform.io/f5networks/f5os"]
on line 0:
Error: Invalid provider configuration
Provider "registry.terraform.io/f5networks/f5os" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider documentation.