https://github.com/bovi/hieb
Simple deployment tool using SSH and supporting command execution and file upload
https://github.com/bovi/hieb
cloud devops devops-tools ssh vmware
Last synced: about 1 year ago
JSON representation
Simple deployment tool using SSH and supporting command execution and file upload
- Host: GitHub
- URL: https://github.com/bovi/hieb
- Owner: bovi
- License: mit
- Created: 2017-01-25T03:45:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T16:17:33.000Z (over 7 years ago)
- Last Synced: 2024-04-27T12:04:03.245Z (almost 2 years ago)
- Topics: cloud, devops, devops-tools, ssh, vmware
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hieb
Simple deployment tool using SSH and supporting command execution and file upload
## Usage
Call the `hieb` command for one server like this:
```
hieb 192.168.0.1 user password [[PATH TO UPLOAD DIR] [PATH TO EXE YAML]]
```
or
```
hieb 192.168.0.1 user ~/.ssh/id_rsa
```
### Command Execution
Hieb is searching in the working directory for `_exe.json`. The content might look like this:
```json
{
"commands": [
"hostname",
"ls -lah /tmp"
]
}
```
### File Upload
Hieb is searching in the working directory for `_files`. The content of this directory will be uploaded starting from the root directory.
```
_files/
|-- bin
| `-- new.exe
|-- etc
| `-- complex.cfg
`-- tmp
|-- temporary.cfg
|-- temporary.db
`-- temporary.sh
```
## Remarks
Hieb is an extreme simple tool to execute commands and upload files using only SSH. It is by no mean a replacement for tools like Puppets, Chef, etc. The intention is to have a tool for one time deployments without complex dependencies. I always had the feeling that most tools are to complex for simple machine deployments.
To simplify the command execution you can add the following to your ```/etc/sudoers```:
```
user ALL=(ALL) NOPASSWD: ALL
```
This allows the usage of ```sudo``` without passing a password.