Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 24.04 #124

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions .cast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ manifest:
deprecated: true
replacement: desktop
supported_os:
- id: ubuntu
release: 20.04
- id: ubuntu
release: 22.04
- id: ubuntu
release: 24.04
saltstack:
pillars:
sift_user_template: "{{ .User }}"
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
push:
branches:
- master
- main
- next
pull_request:
branches:
- master
- main
- next

jobs:
Expand All @@ -29,18 +32,18 @@ jobs:
if: ${{ needs.changed_states.outputs.matrix != '[]' }}
strategy:
matrix:
salt: [3006, 3007]
os: [20.04, 22.04]
salt: [3007, 3006]
os: [22.04, 24.04]
state: ${{ fromJson(needs.changed_states.outputs.matrix) }}
include:
- os: 20.04
code: focal
- os: 24.04
code: noble
- os: 22.04
code: jammy
container:
image: docker://ghcr.io/ekristen/cast-tools/saltstack-tester:${{ matrix.code }}-${{ matrix.salt }}
image: docker://ghcr.io/ekristen/cast-tools/saltstack-tester:${{ matrix.os }}-${{ matrix.salt }}
steps:
- uses: actions/checkout@v4
- name: test-state
run: |
salt-call -l info --file-root . --local --retcode-passthrough --state-output=mixed state.sls ${{ matrix.state }} pillar="{sift_user: root}"
salt-call --local -l info --file-root . --retcode-passthrough --state-output=mixed state.sls ${{ matrix.state }} pillar="{sift_user: root}"
2 changes: 0 additions & 2 deletions sift/config/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include:
- sift.config.user
- sift.config.timezone
- sift.config.folders
- sift.config.salt-minion
- sift.config.samba
- sift.config.tools

Expand All @@ -15,7 +14,6 @@ sift-config:
- sls: sift.config.user
- sls: sift.config.timezone
- sls: sift.config.folders
- sls: sift.config.salt-minion
- sls: sift.config.samba
- sls: sift.config.tools

4 changes: 0 additions & 4 deletions sift/config/salt-minion.sls

This file was deleted.

16 changes: 9 additions & 7 deletions sift/packages/exfat-extras.sls
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
include:
- sift.packages.exfat-extras_{{ grains['oscodename'] }}
# Name: exfat-utils
# Website: https://github.com/relan/exfat
# Description: Free exFAT File System Implementation
# Category:
# Author: Relan
# License: GNU General Public License v2 (https://github.com/relan/exfat/blob/master/COPYING)
# Notes:

sift-package-exfat-extras-distro:
test.nop:
- name: sift-package-exfat-extras-distro
- require:
- sls: sift.packages.exfat-extras_{{ grains['oscodename'] }}
exfatprogs:
pkg.installed
10 changes: 0 additions & 10 deletions sift/packages/exfat-extras_focal.sls

This file was deleted.

10 changes: 0 additions & 10 deletions sift/packages/exfat-extras_jammy.sls

This file was deleted.

14 changes: 0 additions & 14 deletions sift/python-packages/analyzemft.sls

This file was deleted.

2 changes: 0 additions & 2 deletions sift/python-packages/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include:
- sift.python-packages.analyzemft
- sift.python-packages.appcompatprocessor
- sift.python-packages.argparse
- sift.python-packages.bitstring
Expand Down Expand Up @@ -32,7 +31,6 @@ sift-python-packages:
test.nop:
- name: sift-python-packages
- require:
- sls: sift.python-packages.analyzemft
- sls: sift.python-packages.appcompatprocessor
- sls: sift.python-packages.argparse
- sls: sift.python-packages.bitstring
Expand Down
41 changes: 41 additions & 0 deletions sift/python3-packages/analyzemft.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Name: analyzeMFT
# Website: https://github.com/rowingdude/analyzeMFT
# Description: NTFS MFT File Parser
# Category:
# Author: Benjamin Cance
# License: MIT License (https://github.com/rowingdude/analyzeMFT/blob/master/LICENSE.txt)
# Notes: analyzemft

{% set commit = 'b1d0e6a0aa58d42000bfdb8e6588513bd62eaeab' %}

include:
- sift.packages.python3-virtualenv
- sift.packages.git

sift-python3-package-analyzemft-virtualenv:
virtualenv.managed:
- name: /opt/analyzemft
- venv_bin: /usr/bin/virtualenv
- pip_pkgs:
- pip>=24.1.3
- setuptools>=70.0.0
- wheel>=0.38.4
- require:
- sls: sift.packages.python3-virtualenv

sift-python3-package-analyzemft:
pip.installed:
- name: git+https://github.com/rowingdude/analyzemft.git@{{ commit }}
- bin_env: /opt/analyzemft/bin/python3
- upgrade: True
- require:
- virtualenv: sift-python3-package-analyzemft-virtualenv
- sls: sift.packages.git

sift-python3-package-analyzemft-symlink:
file.symlink:
- name: /usr/local/bin/analyzemft
- target: /opt/analyzemft/bin/analyzemft
- makedirs: False
- require:
- pip: sift-python3-package-analyzemft
40 changes: 33 additions & 7 deletions sift/python3-packages/defang.sls
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
# WEBSITE: https://github.com/HurricaneLabs/machinae
# LICENSE: MIT
# Name: defang
# Website: https://bitbucket.org/johannestaas/defang/src/master/
# Description: Defangs and refangs malicious URLs
# Category:
# Author: Johan Nestaas
# License: GNU General Public License v2+ (https://bitbucket.org/johannestaas/defang/src/master/LICENSE)
# Notes:

include:
- sift.python3-packages.pip
- sift.packages.python3-virtualenv

sift-python3-package-defang-venv:
virtualenv.managed:
- name: /opt/defang
- venv_bin: /usr/bin/virtualenv
- pip_pkgs:
- pip>=24.1.3
- setuptools>=70.0.0
- wheel>=0.38.4
- require:
- sls: sift.packages.python3-virtualenv

sift-python3-packages-defang:
sift-python3-package-defang:
pip.installed:
- name: defang==0.5.2
- bin_env: /usr/bin/python3
- name: defang
- bin_env: /opt/defang/bin/python3
- upgrade: True
- require:
- virtualenv: sift-python3-package-defang-venv

sift-python3-package-defang-symlink:
file.symlink:
- name: /usr/local/bin/defang
- target: /opt/defang/bin/defang
- makedirs: False
- require:
- sls: sift.python3-packages.pip
- pip: sift-python3-package-defang
2 changes: 2 additions & 0 deletions sift/python3-packages/init.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include:
- sift.python3-packages.analyzemft
- sift.python3-packages.python3-keyring
- sift.python3-packages.pip
- sift.python3-packages.python3-keyring
Expand Down Expand Up @@ -31,6 +32,7 @@ sift-python3-packages:
test.nop:
- name: sift-python3-packages
- require:
- sls: sift.python3-packages.analyzemft
- sls: sift.python3-packages.python3-keyring
- sls: sift.python3-packages.pip
- sls: sift.python3-packages.python3-keyring
Expand Down
5 changes: 2 additions & 3 deletions sift/scripts/docker-compose.sls
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{%- set version = "2.15.1" -%}
{%- set hash = "bcfd9ea51dee4c19dccdfaeef0e7956ef68bf14f3d175933742061a7271ef0f5" -%}
{%- set version = "2.23.2" -%}

sift-scripts-docker-compose:
file.managed:
- name: /usr/local/bin/docker-compose
- source: https://github.com/docker/compose/releases/download/v{{ version }}/docker-compose-{{ grains['kernel'] }}-{{ grains['cpuarch'] }}
- source_hash: sha256={{ hash }}
- source_hash: https://github.com/docker/compose/releases/download/v{{ version }}/docker-compose-{{ grains['kernel'] }}-{{ grains['cpuarch'] }}.sha256
- mode: 755
- replace: True
Loading