CREATE USER semaphore_user WITH PASSWORD 'user4semaphore';
CREATE DATABASE semaphore_db OWNER semaphore_user;
GRANT ALL PRIVILEGES ON DATABASE semaphore_db TO semaphore_user;
\q
Salimos de postgres y root
exit
exit
Ahora vamos a crear los directorios para losplybooks y logs de semaphore
cd /root
wget https://github.com/semaphoreui/semaphore/releases/download/v2.16.32/semaphore_2.16.32_linux_amd64.deb
Instalamos
dpkg -i semaphore_2.16.32_linux_amd64.deb
exit
como el usuario cgi configuramos
semaphore setup
Wizzard
Hello! You will now be guided through a setup to:
1. Set up configuration for a MySQL/MariaDB database
2. Set up a path for your playbooks (auto-created)
3. Run database Migrations
4. Set up initial semaphore user & password
What database to use:
1 - MySQL
2 - BoltDB (DEPRECATED!!!)
3 - PostgreSQL
4 - SQLite
(default 1): 3
db Hostname (default 127.0.0.1:5432):
db User (default root): semaphore_user
db Password: user4semaphore
db Name (default semaphore): semaphore_db
Playbook path (default /tmp/semaphore): /home/cgi/semaphore/tmp
Public URL (optional, example: https://example.com/semaphore):
Enable email alerts? (yes/no) (default no):
Enable telegram alerts? (yes/no) (default no):
Enable slack alerts? (yes/no) (default no):
Enable Rocket.Chat alerts? (yes/no) (default no):
Enable Microsoft Team Channel alerts? (yes/no) (default no): yes
Microsoft Teams Webhook URL:
Enable LDAP authentication? (yes/no) (default no):
Config output directory (default /home/cgi/semaphore):
...
> Username: gmatamoros
> Email: gustavo.matamoros.gonzalez@una.ac.cr
WARN[0266] no rows in result set fields.level=Warn
> Your name: Gustavo Matamoros González
> Password: A2
You are all setup Gustavo Matamoros González!
Re-launch this program pointing to the configuration file
./semaphore server --config /home/cgi/config.json
To run as daemon:
nohup ./semaphore server --config /home/cgi/config.json &
You can login with gustavo.matamoros.gonzalez@una.ac.cr or gmatamoros.