Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ridwanbejo/terraform-netbox-tenancy
Terraform module for managing Netbox tenancy config
https://github.com/ridwanbejo/terraform-netbox-tenancy
automation devops hashicorp hcl iac infrastructure-as-code ipam netbox network sysadmin terraform
Last synced: 1 day ago
JSON representation
Terraform module for managing Netbox tenancy config
- Host: GitHub
- URL: https://github.com/ridwanbejo/terraform-netbox-tenancy
- Owner: ridwanbejo
- License: bsd-3-clause
- Created: 2024-01-23T06:24:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T06:45:14.000Z (about 1 year ago)
- Last Synced: 2024-12-06T04:24:10.824Z (about 2 months ago)
- Topics: automation, devops, hashicorp, hcl, iac, infrastructure-as-code, ipam, netbox, network, sysadmin, terraform
- Language: HCL
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Netbox Tenancy
This is a Terraform module for managing tenancy configuration at Netbox. You can use this module both for commercial or non-commercial purposes.
Currently, you can manage these resources in Netbox by using this module:
- contact
- contact_assignment
- contact_group
- contact_role
- tenant
- tenant_groupTested in:
- Netbox Community (localhost)
## A. Prerequisites
Requirements:
- Terraform with version >= 1.4
## B. How to use this module for your Terraform project ?
You can check any examples projects that use this module under `examples` directory.
- config-1-basic
- contact-1-basic
- contact-2-assignment
- contact-3-multiple
- tenant-1-basic
- tenant-2-multiple## C. Understanding tfvars scenarios
You can check any examples tfvars that use this module under `examples` directory.
- config-1-basic
- contact-1-basic
- contact-2-assignment
- contact-3-multiple
- tenant-1-basic
- tenant-2-multiple## D. Ensuring quality
I am trying to follow these approaches for ensuring quality of the tf-module:
- **validate**, ensure my Terraform module is in correct configuration based on Terraform guideline
- **auto-format**, ensure my Terraform script is edited with correct format based on Terraform guideline
- **linter**, ensure my Terraform script is in correct format based on Terraform guideline
- **security**, ensure my Terraform module is free from CVE and stay compliance
- **automation**, run all above steps by using automation tool to improve development time and keep best quality before or after merging to Git repositoryThe tools:
- [terraform validate](https://developer.hashicorp.com/terraform/cli/commands)
- [terraform fmt](https://developer.hashicorp.com/terraform/cli/commands)
- [tflint](https://github.com/terraform-lint48ers/tflint)
- [tfsec](https://github.com/aquasecurity/tfsec)
- [Pre-commit](https://pre-commit.com/)
- Github Action [Setup Terraform pipeline](https://github.com/hashicorp/setup-terraform)## E. How to contribute ?
If you find any issue, you can raise it here at our [Issue Tracker](https://github.com/ridwanbejo/terraform-netbox-tenancy/issues)
If you have something that you want to merge to this repo, just raise [Pull Requests](https://github.com/ridwanbejo/terraform-netbox-tenancy/pulls)
Ensure that you install all the tools from section D. for development purpose.