Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kunish/router
Homelab mikrotik router management with terraform-provider-mikrotik
https://github.com/kunish/router
Last synced: 2 days ago
JSON representation
Homelab mikrotik router management with terraform-provider-mikrotik
- Host: GitHub
- URL: https://github.com/kunish/router
- Owner: kunish
- Created: 2021-07-14T18:37:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T16:56:11.000Z (over 2 years ago)
- Last Synced: 2024-11-14T16:48:06.654Z (2 months ago)
- Language: HCL
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using terraform-provider-mikrotik to manage my private homelab network
## How to use
### environment variable
Replace following variable with the desired state of your own environment
```bash
cat > variable.auto.tfvars << EOF
mikrotik_host = ":"
mikrotik_username = ""
mikrotik_password = ""domain_name = "example.com"
dhcp_pool_range_start = "10.10.0.100"
dhcp_pool_range_end = "10.10.10.255"hosts = {
"host1" = {
name = "host1"
address = "10.10.0.2"
macaddress = "00:00:00:00:00:00"
}
"host2" = {
name = "host2"
address = "10.10.0.3"
macaddress = "00:00:00:00:00:00"
}
}
EOF
```### login, review and deploy
```bash
terraform loginterraform init
terraform validate
terraform plan
terraform apply
```