Skip to content

Commit

Permalink
fix for user-model links, added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Feb 13, 2024
1 parent 4947739 commit c8ed356
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 6 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Changelog

## Version 0

### 0.0.7

* Job Permissions
* Job Output UI
* Refactored UI to use Ajax for dynamic Updates
* System - Environment UI

----

### 0.0.6

* Job Logs
* Realtime following of Output
* Ability to stop running jobs
* Fixes for secret handling

----

### 0.0.5

* [Ansible-Runner](https://ansible.readthedocs.io/projects/runner/en/latest/python_interface/) integration
* Ability to execute simple playbooks successfully
* Scheduled jobs working
* Manual job execution using UI and API working
* Job-Management UI with basic result stats
* Job-Secrets are saved encrypted

----

### 0.0.4

* Very basic job management
* Scheduler to run jobs by cron-based expressions
* Queue to process manually triggered jobs
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM python:3.10-alpine

ARG AW_VERSION="0.0.5"
ARG AW_VERSION="0.0.7"

# BUILD CMD: docker build -t ansible-webui:0.0.4-dev --build-arg "AW_VERSION=0.0.4" .
# BUILD CMD: docker build -t ansible-webui:<VERSION> --build-arg "AW_VERSION=<VERSION>" .
# BUILD LATEST: docker build -t ansible-webui:latest --build-arg "AW_VERSION=latest" .

# /ansible-webui can be used to mount an existing playbook-directory/-repo
RUN pip install --no-cache-dir --upgrade pip 2>/dev/null && \
pip install --no-cache-dir ansible-webui==${AW_VERSION} && \
RUN apk add --no-cache git && \
pip install --no-cache-dir --upgrade pip 2>/dev/null && \
pip install --no-cache-dir "git+https://github.com/ansibleguy/ansible-webui.git@${AW_VERSION}" && \
mkdir -p /ansible-webui

WORKDIR /ansible-webui
Expand Down
4 changes: 2 additions & 2 deletions src/ansible-webui/aw/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group

USERS = settings.AUTH_USER_MODEL
USERS = get_user_model()
GROUPS = Group
1 change: 1 addition & 0 deletions src/ansible-webui/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _make_migrations() -> bool:
def create_first_superuser():
# pylint: disable=C0415
from aw.base import USERS
print(USERS, type(USERS))
if len(USERS.objects.filter(is_superuser=True)) == 0:
name = get_aw_env_var('init_admin')
pwd = get_aw_env_var('init_admin_pwd')
Expand Down

0 comments on commit c8ed356

Please sign in to comment.