https://github.com/dodevops/foreman-hookinterfaces
Finds foreman hosts that doesn't have an associated subnet for interfaces, searches for a fitting subnet based on the interfaces IP address and assigns it.
https://github.com/dodevops/foreman-hookinterfaces
Last synced: 2 months ago
JSON representation
Finds foreman hosts that doesn't have an associated subnet for interfaces, searches for a fitting subnet based on the interfaces IP address and assigns it.
- Host: GitHub
- URL: https://github.com/dodevops/foreman-hookinterfaces
- Owner: dodevops
- License: mit
- Created: 2023-02-02T06:54:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T06:55:57.000Z (over 3 years ago)
- Last Synced: 2025-03-11T16:23:01.482Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hookinterfaces
Finds foreman hosts that doesn't have an associated subnet for interfaces, searches for a fitting subnet
based on the interfaces IP address and assigns it.
## Building
Run the following to build the tool
docker run --rm -e GOOS= -e GOARCH= -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.19-alpine go build cmd/hookinterfaces.go
Replace os and arch with the os and architecture you're running on. For macOS on ARM, use e.g.:
docker run --rm -e GOOS=darwin -e GOARCH=arm64 -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.19-alpine go build cmd/hookinterfaces.go
## Running
Run `hookinterfaces --help` to see all available options.