Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomdewildt/ssh-provision
A simple tool to create ssh keys and distribute them to CentOS servers
https://github.com/tomdewildt/ssh-provision
actions centos golang ssh ssh-client vagrant
Last synced: 3 months ago
JSON representation
A simple tool to create ssh keys and distribute them to CentOS servers
- Host: GitHub
- URL: https://github.com/tomdewildt/ssh-provision
- Owner: tomdewildt
- License: mit
- Created: 2020-04-06T22:41:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T07:36:02.000Z (4 months ago)
- Last Synced: 2024-10-29T08:26:49.056Z (4 months ago)
- Topics: actions, centos, golang, ssh, ssh-client, vagrant
- Language: Go
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# SSH Provision
[](https://github.com/tomdewildt/ssh-provision/releases)
[](https://github.com/tomdewildt/ssh-provision/actions/workflows/ci.yml)
[](https://github.com/tomdewildt/ssh-provision/actions/workflows/cd.yml)
[](https://codecov.io/gh/tomdewildt/ssh-provision)
[](https://goreportcard.com/report/github.com/tomdewildt/ssh-provision)
[](https://github.com/tomdewildt/ssh-provision/blob/master/LICENSE)A simple tool to create ssh keys and distribute them to CentOS servers.
**Note:** This tool is not production ready.
# How To Run
Prerequisites:
* vagrant version ```2.2.7``` or later
* go version ```1.19``` or later### Development
1. Run ```make init``` to initialize the environment.
2. Run ```make run``` to execute the cli tool.### Test
1. Run ```make init``` to initialize the environment.
2. Run ```make test``` to execute the tests for the cli tool.Run ```make vm/start``` to create the virtual machine, ```make vm/stop``` to stop the virtual machine and ```make vm/remove``` to remove it.
# How To Build
### Linux
1. Run ```make init``` to initialize the environment.
2. Run ```make build``` to build the cli tool.# References
[Go Docs](https://golang.org/doc/)
[Go SSH](https://godoc.org/golang.org/x/crypto/ssh)
[Go Logus](https://godoc.org/github.com/sirupsen/logrus)
[Go Cobra](https://godoc.org/github.com/spf13/cobra)
[Go Validator](https://godoc.org/github.com/go-playground/validator)
[Go Testify](https://godoc.org/github.com/stretchr/testify)
[Go Project Layout](https://github.com/golang-standards/project-layout)