~/.terraform.d/plugins/
- and add a configuration file called terraform-provider-openapi.yaml
. In that file, define a new service called 'antsle' and include the URL to your server like so:insecure_skip_verify: true
.apikey_auth
. This key will be used to authenticate all requests. To obtain your token, use the /api/login
endpoint. Add the prefix Token
to the returned value so your apikey_auth
field looks like in the example above. Run terraform init
to make the new provider available.antsle_antlets
and specify the desired values like so:terraform plan
, Terraform will check if the antlet exists and perform the appropriate action:~/.terraform.d/plugins/
directory, duplicate the provider. Make sure to follow this naming scheme: terraform-provider-<servername>
. In our example, this would be terraform-provider-server1 and terraform-provider-server2.terraform-provider-openapi.yaml
- also in your plugins directory. Add an entry for each server and make sure the name of each service matches the <servername>
of the corresponding plugin. Again, in our example the configuration would look like this:terraform init
, you can make use of each provider and their resources like described in the single-node example above. Only adjust the naming scheme to correspond to your configuration: