Semaphore UI REST API credential prototype for MultiFlexi
addonNetworkOfficeapt install multiflexi-semaphoreProvides the Semaphore credential prototype for MultiFlexi core, defining the SEMAPHORE_URL and SEMAPHORE_TOKEN configuration fields required to trigger Ansible playbooks as Semaphore tasks (e.g. SaaS provisioning).
Also ships a web UI component that probes /api/user with the configured token and displays the token owner.
MultiFlexi credential prototype for Semaphore UI REST API.
Provides the Semaphore credential prototype with two fields:
| Keyword | Type | Description |
|---|---|---|
SEMAPHORE_URL |
url | Semaphore UI base URL (without /api), e.g. https://semaphore.proxy.spojenet.cz |
SEMAPHORE_TOKEN |
password | Semaphore API token (Bearer), from Semaphore UI → user → API keys |
This package also ships the MultiFlexi\Action\Semaphore action (installed into
/usr/share/php/MultiFlexi/Action/, auto-discovered by MultiFlexi). It uses a
credential of this prototype to trigger a Semaphore task:
POST {SEMAPHORE_URL}/api/project/{project_id}/tasks
Authorization: Bearer {SEMAPHORE_TOKEN}
{"template_id": <id>, "environment": "{...json string...}"}
Configure the action on a RunTemplate in MultiFlexi (actions.php): select the Semaphore
credential, project ID and template ID. When the job finishes (mode success), the
Semaphore template is launched with the job environment forwarded (EVENT_* variables
from event rules are always included).
sudo apt install lsb-release wget
echo "deb http://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
sudo apt update
sudo apt install multiflexi-semaphore multiflexi-semaphore-ui
The postinst runs multiflexi-cli credential-prototype:sync, which registers the
prototype in the MultiFlexi database.
Tento balíček zatím možná není v naší databázi zaindexován. Zkuste to prosím později, nebo zkontrolujte přímo repozitář balíčků.