This is a Terraform provider for Juniper Apstra. It relies on a Go client library at https://github.com/Juniper/apstra-go-sdk
Instructions for popular operating systems can be found here.
The terraform configuration must:
- be named with a
.tf
file extension. - reference this provider by its global address. registry.terraform.io/Juniper/apstra or just: Juniper/apstra.
- include a provider configuration block which tells the provider where to find the Apstra service.
terraform {
required_providers {
apstra = {
source = "Juniper/apstra"
}
}
}
provider "apstra" {
url = "<apstra-server-url>"
}
Run the following at a command prompt while in the same directory as the configuration file to fetch the Apstra provider plugin.
terraform init
export APSTRA_USER=<username>
export APSTRA_PASS=<password>
Alternatively, credentials can be embedded in the URL using HTTP basic
authentication format (we don't actually do basic authentication, but the
format is: https://user:pass@host
). Any special characters in the username
and password must be URL-encoded when using this approach.
Full documentation for provider, resources and data sources can be found here.
See the open issues for a full list of proposed features (and known issues).
View the Roadmap if you would like to see what is next on our plate.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request