This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Old TyT edited this page Dec 8, 2022
·
3 revisions
Hera it's cross-platform server management system.
- Select webhook on hera
- Add a template
- Execute the template
- Get the execution result
- Profit
- Install Hera or use Hera (
User
:admin
,password
:password
) - Install the webhook on your server and configure
config.json
- Add template in Hera
- If email(
username
)!=
admin
, you needed confirm this template from other profile - On this page select your webhook and click
RUN
- Enter
Time execute command in seconds
andTemplate ID
- You can get the result of the template execution on this page
- Profit
This system supported the authorization of users from Alerta
- from ENV ALERTA_URL
.
A template is a set of the following parameters:
Command
Interpreter
- and etc for executing code Hera
- Webhook gets a task to execute a command with certain parameters
- Webhook creates a temporary file (
FileExecute
) with the textCommand
- Then runs this file as follows:
Interpreter FileExecute
- After execution returns the result to Hera
-
Interpreter
-/bin/sh
-
Command
-ls -la /*