wip: make install task

This commit is contained in:
mustard 2025-10-20 22:23:13 +02:00
parent b657635c86
commit ead93aab85
3 changed files with 29 additions and 11 deletions

View file

@ -1,4 +1,5 @@
SHELL = /bin/sh
SHELL = /bin/bash
ifneq (,$(wildcard .bundle-env))
include .bundle-env
@ -55,10 +56,6 @@ pull/%:
@echo "updated branch $* from $(GUEST)"
apply:
echo "Applying salt states"
run0 install -Dd -o$(USER) -g$(USER) -m0755 /srv/user && \
run0 cp -r ./guardian /srv/user/salt && \
run0 qubesctl top.enable guardian && \
run0 qubesctl --show-output --all state.apply && \
popd
install:
install -D -oroot -groot -m0644 conf/z_user.conf /etc/salt/minion.d/z_user.conf
install -D -oroot -groot -m0644 conf/overrides.conf /usr/local/etc/salt/minion.d/overrides.conf

4
conf/overrides.conf Normal file
View file

@ -0,0 +1,4 @@
# This file tracks user overrides of salt behavior
# see https://docs.saltproject.io/en/latest/ref/configuration/master.html for docs on these configs
#cli_summary: true

17
conf/z_user.conf Normal file
View file

@ -0,0 +1,17 @@
# here we add the salt configurations in this repo as a separate environment, "user"
# only stuff under /srv gets copied to the qubes mgmt dvm, so these paths should all be under /srv
file_roots:
base:
- /srv/salt
user:
- /srv/user/salt
pillar_roots:
base:
- /srv/pillar
user:
- /srv/user/pillar
formula_dirs: ['/srv/formulas', '/srv/user/formulas']