Allow specifying arguments for chocolatey packages

This commit is contained in:
Adam Goldsmith 2024-03-31 23:37:31 -04:00
parent ddc6e8eab0
commit f89c0f5936
2 changed files with 37 additions and 30 deletions

View File

@ -10,6 +10,9 @@ include:
"install {{ pkg }}":
chocolatey.installed:
- name: {{ pkg }}
{% if pkg in packages and packages[pkg] %}
{{ packages[pkg] | dict_to_sls_yaml_params | indent }}
{% endif %}
- require:
- sls: chocolatey
{% endfor %}
@ -19,8 +22,12 @@ include:
{% set outdated_pkg = outdated_pkg_lines|map('method_call', 'split', '|', 1)|map(attribute=0) %}
{% for pkg in outdated_pkg|difference(['chitubox', 'sketchup', 'autodesk-fusion360']) %}
"update {{ pkg }}":
chocolatey.upgraded:
- name: "{{ pkg }}"
module.run:
- chocolatey.upgrade:
- name: "{{ pkg }}"
{% if pkg in packages and packages[pkg] %}
{{ packages[pkg] | dict_to_sls_yaml_params | indent }}
{% endif %}
- require:
- chocolateyBootstrap
{% endfor %}

View File

@ -1,42 +1,42 @@
# Admin Tools
- choco-cleaner
choco-cleaner:
# Browsers
- firefox
- googlechrome
firefox:
googlechrome:
# Development Tools
- arduino
- git
- javaruntime
- notepadplusplus
- python
- vim
- vscode
- rpi-imager
arduino:
git:
javaruntime:
notepadplusplus:
python:
vim:
vscode:
rpi-imager:
# Graphics
- gimp
- inkscape
gimp:
inkscape:
# 3D Modeling
- autodesk-fusion360
- meshmixer
- blender
- cura-lulzbot
- openscad
- freecad
- chitubox
- solvespace
autodesk-fusion360:
meshmixer:
blender:
cura-lulzbot:
openscad:
freecad:
chitubox:
solvespace:
- kicad
kicad:
# Office
- 7zip
- adobereader
- libreoffice-fresh
- vlc
- itunes
7zip:
adobereader:
libreoffice-fresh:
vlc:
itunes:
# Education
- minecraft-education
minecraft-education: