Skip to content

Commit

Permalink
Merge pull request #321 from salopensource/version-4
Browse files Browse the repository at this point in the history
Version 4
  • Loading branch information
sheagcraig authored Aug 15, 2019
2 parents 53f0c56 + c6e5501 commit c9d4448
Show file tree
Hide file tree
Showing 257 changed files with 3,319 additions and 4,519 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
test:
docker:
- image: circleci/python:2.7-jessie
- image: circleci/python:3.7.1

working_directory: ~/repo

Expand All @@ -19,7 +19,7 @@ jobs:
- run:
name: install dependencies
command: |
virtualenv venv
python -m venv venv
. venv/bin/activate
pip install -r setup/requirements.txt
pip install flake8
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 120
ignore = F401,F405,E402,F403,W504,W605
max-line-length = 100
max-complexity = 126
exclude = venv/*,*/migrations/*,wip_plugins/*,datatableview/*, sal/settings.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ sal/settings.py

sal-small.db
sal_env/
plugins.old

# node stuff
node_modules/
Expand Down
49 changes: 0 additions & 49 deletions 3rdpartyclients.md

This file was deleted.

17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Sal Dockerfile
FROM ubuntu:14.04
FROM python:3.7.1

MAINTAINER Graham Gilbert <[email protected]>

Expand All @@ -17,18 +17,19 @@ ENV MAINT_FREQUENCY 300
# ENV DOCKERIZE_VERSION v0.3.0

RUN apt-get update && \
mkdir -p /usr/share/man/man1 && \
mkdir -p /usr/share/man/man7 && \
apt-get install -y libc-bin && \
apt-get install -y software-properties-common && \
apt-get -y update && \
add-apt-repository -y ppa:nginx/stable && \
apt-get -y install \
git \
gcc \
nginx \
python-setuptools \
postgresql \
postgresql-contrib \
libpq-dev \
python-dev \
python3-dev \
curl \
supervisor \
libffi-dev && \
Expand All @@ -37,10 +38,9 @@ RUN apt-get update && \
mkdir /tmp/setup
COPY setup/requirements.txt /tmp/setup/requirements.txt
COPY requirements.txt /tmp/requirements.txt
RUN easy_install pip && \
pip install -r /tmp/requirements.txt && \
RUN pip install -r /tmp/requirements.txt && \
rm /tmp/requirements.txt && \
rm -rf /tmp/setup && \
# rm -rf /tmp/setup && \
update-rc.d -f postgresql remove && \
update-rc.d -f nginx remove && \
mkdir -p /home/app && \
Expand All @@ -67,6 +67,9 @@ RUN chmod 755 /run.sh && \
touch $APP_DIR/sal.log &&\
chmod 777 $APP_DIR/sal.log

#&& \
#find . -name $APP_DIR/\*.pyc -delete

WORKDIR $APP_DIR
EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sal
[![CircleCI](https://circleci.com/gh/salopensource/sal.svg?style=svg)](https://circleci.com/gh/salopensource/sal)

Sal is a multi-tenanted reporting dashboard for [Munki](https://github.com/munki/munki/) with the ability to display information from [Facter](http://puppetlabs.com/facter). It has a plugin system allowing you to easily build widgets to display your custom information from Facter or Munki's [conditional items](https://github.com/munki/munki/wiki/Conditional-Items) (or both!).
Sal is a multi-tenanted reporting dashboard for [Munki](https://github.com/munki/munki/) with the ability to display information from [Facter](http://puppetlabs.com/facter). It has a plugin system allowing you to easily build widgets to display your custom information from Facter, Grains, Munki's [conditional items](https://github.com/munki/munki/wiki/Conditional-Items) etc.

With Sal, you are able to allow access to reports on certain sets of machines to certain people - for example, giving a manager access to the reports on the machines in their department.

Expand Down
20 changes: 0 additions & 20 deletions api/fixtures/conditions_fixture.json

This file was deleted.

22 changes: 4 additions & 18 deletions api/fixtures/machine_fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"memory_kb": 16777216,
"munki_version": "2.8.1.2845",
"manifest": "C0DEADBEEF",
"hd_space": "476429672",
"hd_total": "975912960",
"hd_space": 476429672000,
"hd_total": 975912960000,
"hd_percent": "51",
"console_user": "shcrai",
"machine_model": "MacBookPro11,5",
Expand All @@ -22,14 +22,7 @@
"os_family": "Darwin",
"last_checkin": "2016-10-06T19:29:38.376Z",
"first_checkin": "2016-10-06T15:51:21.145Z",
"report": "",
"errors": 4,
"warnings": 7,
"activity": false,
"puppet_version": "4.7.0",
"sal_version": "1.0.6",
"last_puppet_run": "2016-10-06T19:06:21Z",
"puppet_errors": 0,
"deployed": true,
"broken_client": false
}
Expand All @@ -46,8 +39,8 @@
"memory_kb": 16777216,
"munki_version": "2.8.2.2855",
"manifest": "C1DEADBEEF",
"hd_space": "536276480",
"hd_total": "975831040",
"hd_space": 536276480000,
"hd_total": 975831040000,
"hd_percent": "45",
"console_user": "shcrai",
"machine_model": "MacBookPro13,3",
Expand All @@ -57,14 +50,7 @@
"os_family": "Darwin",
"last_checkin": "2017-05-16T19:04:51.336Z",
"first_checkin": "2017-05-16T19:04:51.728Z",
"report": "",
"errors": 0,
"warnings": 3,
"activity": false,
"puppet_version": "4.10.1",
"sal_version": "2.0.3",
"last_puppet_run": "2017-05-16T18:54:56Z",
"puppet_errors": 0,
"deployed": true,
"broken_client": false
}
Expand Down
12 changes: 12 additions & 0 deletions api/fixtures/message_fixtures.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"model": "server.message",
"pk": 1,
"fields": {
"machine": 1,
"text": "Missing plist path or version!",
"date": "2019-02-28T21:00:46.441Z",
"message_type": "ERRORS"
}
}
]
22 changes: 0 additions & 22 deletions api/fixtures/pending_update_fixtures.json

This file was deleted.

26 changes: 0 additions & 26 deletions api/v1/README.md

This file was deleted.

100 changes: 0 additions & 100 deletions api/v1/serializers.py

This file was deleted.

Loading

0 comments on commit c9d4448

Please sign in to comment.