Project

hieb

0.0
No commit activity in last 3 years
No release in over 3 years
Simple deployment tool using SSH and supporting command execution and file upload
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Runtime

>= 1.2.1, ~> 1.2
>= 4.0.1, ~> 4.0
 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:

{
  "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.