This is a basic project which displays information retrieved from salt
If using salt-api, this can be run anywhere that has access to the salt-api endpoints with or without docker. Otherwise it must be run locally on the salt master without docker.
Run app:
Docker:
docker-compose up -dWithout docker (recommend using python virtualenv):
Setup virtualenv (optional):
yum install python-virtualenv
virtualenv -p 3 .venvStart application:
source .venv/bin/activate
./start.shDefault superuser login credentials: user: admin password: password
Note:: default superuser can be changed with env vars:
DJANGO_SUPERUSER_EMAIL=name@test.com
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_PASSWORD=secretpassword
##Dev Use make to run dev environment
Build dev environment:
make build-devStart dev environment:
make run-devUse cli in saltui container:
make saltui-cmdStop dev environment:
make stop-devCreate clean dev environment:
make fresh##Saltui commands:
Collecting data from:
Data is collected running the following commands. These can be ran manually or using a scheduler such as cron, jenkins, or ophelia.
Note:: retrieving users information requires the userinfo.py module from the /srv/salt/_modules folder to be added to the salt file root (/srv/salt/_modules)
./update.sh system
./update.sh package
./update.sh usersOr:
./update.sh all