pulse-vadc / terraform-provider-vtm

A terraform provider from the Pulse Secure virtual Traffic Manager
Mozilla Public License 2.0
9 stars 12 forks source link

Virtual Server for DNS issue #6

Closed lewissw closed 5 years ago

lewissw commented 5 years ago

Hi I'm having a problem configuring glb services: vtm_virtual_server.vs_dns: Error creating vtm_virtual_server 'VS:DEV:TESTSERVICE:53': The resource provided is invalid ; basic_glb_services The value should be a space separated list of GLB Services.

The pdf says: The associated GLB serv ices for this DNS virtual server. • Type: Set(String) •Required: false • Default value:

When using the provider, it wants me to pass a list for glb_services. If I enable debug on the api call to the traffic manager I can see: \"basic\":{\"bandwidth_class\":\"\",\"completion_rules\":[],\"connect_timeout\":10,\"enabled\":true,\"glb_services\":[\"gms.btc-cce.bt.com\"]

i.e. the square brackets are wrapping the value.

Am I missing something? version info: "terraform-provider-vtm_v6.0.0" VTM Version is 18.2

lewissw commented 5 years ago

Sorry, can you close issue #6. The VTM is giving a misleading error message. "invalid ; basic_glb_services The value should be a space separated list of GLB Services". gets presented if the glb_service being referenced is disabled.

ndavidson-pulse commented 5 years ago

Hi lewissw - The problem appears to be that the glb service doesn't exist by that name in the zxtm config. Have you made sure to specify a glb service in the terraform config? The resource dependencies should ensure it is created before the virtual server.

lewissw commented 5 years ago

Thanks

I don’t suppose you have a complete example of using TF to set up a DNS service?

Cheers

Steve

From: Nick Davidson [mailto:notifications@github.com] Sent: 29 November 2018 11:10 To: pulse-vadc/terraform-provider-vtm terraform-provider-vtm@noreply.github.com Cc: Lewis,SW,Steve,TAF3 R steve.w.lewis@bt.com; Author author@noreply.github.com Subject: Re: [pulse-vadc/terraform-provider-vtm] Virtual Server for DNS issue (#6)

Hi lewissw - The problem appears to be that the glb service doesn't exist by that name in the zxtm config. Have you made sure to specify a glb service in the terraform config? The resource dependencies should ensure it is created before the virtual server.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pulse-vadc/terraform-provider-vtm/issues/6#issuecomment-442795693, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB2r4eN1w3X4wW2Q08cwn7rf-9uo8V3oks5uz8BsgaJpZM4Y5bGA.

dkalintsev commented 5 years ago

Steve,

This may be able to help: https://github.com/dkalintsev/Terraform-vTM-GSLB