aufgeräumt und umgestellt von push auf pull

This commit is contained in:
Alexander Gabriel 2026-04-19 15:01:17 +02:00
parent db9c16057e
commit 9292f3002e
12 changed files with 143 additions and 66 deletions

19
admin.sls Normal file
View File

@ -0,0 +1,19 @@
vscode:
pkg.latest:
- refresh_db: true
gimp:
pkg.latest:
- refresh_db: true
git:
pkg.latest:
- refresh_db: true
7zip:
pkg.latest:
- refresh_db: true
npp_x64:
pkg.latest:
- refresh_db: true

39
all.sls Normal file
View File

@ -0,0 +1,39 @@
arduino-ide:
pkg.latest:
- refresh_db: true
blender:
pkg.latest:
- refresh_db: true
vscode:
pkg.latest:
- refresh_db: true
gimp:
pkg.latest:
- refresh_db: true
git:
pkg.latest:
- refresh_db: true
adoptium_jre:
pkg.latest:
- refresh_db: true
openrobertaconnector:
pkg.latest:
- refresh_db: true
7zip:
pkg.latest:
- refresh_db: true
vlc:
pkg.latest:
- refresh_db: true
npp_x64:
pkg.latest:
- refresh_db: true

View File

@ -1,35 +1,13 @@
salt-run winrepo.update_git_repos
salt -G 'os:windows' pkg.refresh_db
salt '*' state.apply
#salt '*' pkg.install 'firefox_x64'
cat /srv/salt/states/pcs.sls
firefox_x64:
pkg:
- installed
salt '*' state.apply pcs
salt '*' state.apply
salt -G 'os:windows' pkg.refresh_db
salt '*' pkg.install arduino-ide version=2.3.3
#noch einbauen
salt '*' cmd.run 'wmic product where "name like \'%Automate%\'" call uninstall /nointeractive' shell=powershell
salt "*" appx.remove *ZuneMusic*
# list installed packages
salt -G 'os:windows' pkg.list_pkgs salt -G 'os:windows' pkg.list_pkgs
# list available versions salt '*' state.apply init
salt win11 pkg.list_available firefox_x64 salt '*' state.apply
#Windows Updates salt '*' test.version
salt -G 'os:windows' win_wua.available
salt-run winrepo.update_git_repos
salt -G 'os:windows' pkg.refresh_db
salt -G 'os:windows' win_wua.download xxxxxxx
salt '*' win_wua.install xxxxxxxxxxxx

6
core.sls Normal file
View File

@ -0,0 +1,6 @@
copy_my_files:
file.managed:
- name: C:/ProgramData/Salt Project/Salt/conf/minion.d/startup_states.conf
- source: salt://files/startup_states.conf
- makedirs: True

3
desktop.sls Normal file
View File

@ -0,0 +1,3 @@
python3_x64:
pkg.latest:
- refresh_db: true

View File

@ -0,0 +1,3 @@
startup_states: 'top'
top_file: 'top.sls'

2
init.sls Normal file
View File

@ -0,0 +1,2 @@
include:
- core

0
laptop.sls Normal file
View File

35
pcs.sls
View File

@ -1,35 +0,0 @@
firefox_x64:
pkg:
- latest
arduino-ide:
pkg:
- latest
blender:
pkg:
- latest
vscode:
pkg:
- latest
git:
pkg:
- latest
python3_x64:
pkg:
- latest
adoptium_jre:
pkg:
- latest
openrobertaconnector:
pkg:
- latest
7zip:
pkg:
- latest

15
test.sls Normal file
View File

@ -0,0 +1,15 @@
vscode:
pkg.latest:
- refresh_db: true
gimp:
pkg.latest:
- refresh_db: true
7zip:
pkg.latest:
- refresh_db: true
npp_x64:
pkg.latest:
- refresh_db: true

16
top.sls
View File

@ -1,4 +1,16 @@
base: base:
'*': 'z-lab-laptop-*':
- pcs - core
- all
- laptop
'z-lab-desktop-*':
- core
- all
- desktop
'z-lab-admin*':
- core
- admin
'z-lab-test*':
- core
- test

35
zz_befehle_alt.txt Normal file
View File

@ -0,0 +1,35 @@
salt-run winrepo.update_git_repos
salt -G 'os:windows' pkg.refresh_db
salt '*' state.apply
#salt '*' pkg.install 'firefox_x64'
cat /srv/salt/states/pcs.sls
firefox_x64:
pkg:
- installed
salt '*' state.apply pcs
salt '*' state.apply
salt -G 'os:windows' pkg.refresh_db
salt '*' pkg.install arduino-ide version=2.3.3
#noch einbauen
salt '*' cmd.run 'wmic product where "name like \'%Automate%\'" call uninstall /nointeractive' shell=powershell
salt "*" appx.remove *ZuneMusic*
# list installed packages
salt -G 'os:windows' pkg.list_pkgs
# list available versions
salt win11 pkg.list_available firefox_x64
#Windows Updates
salt -G 'os:windows' win_wua.available
salt -G 'os:windows' win_wua.download xxxxxxx
salt '*' win_wua.install xxxxxxxxxxxx