diff --git a/fah-config.xml b/fah-config.xml new file mode 100644 index 0000000..d68dcbe --- /dev/null +++ b/fah-config.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/fah.sls b/fah.sls new file mode 100644 index 0000000..a1cc6d7 --- /dev/null +++ b/fah.sls @@ -0,0 +1,41 @@ +include: + - chocolatey + +Set standby timeout to 0: + powercfg.set_timeout: + - name: standby + - value: 0 + - order: 1 + +Install fah: + chocolatey.installed: + - name: fah + - require: + - sls: chocolatey + +Create fah config file: + file.managed: + - name: 'C:\Users\LocalAdmin\AppData\Roaming\FAHClient\config.xml' + - source: 'salt://fah-config.xml' + - makedirs: True + +Add fah to path: + win_path.exists: + - name: 'C:\Program Files (x86)\FAHClient' + +Create fah data directory registry entry: + reg.present: + - name: 'HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FAHClient' + - vname: "DataDirectory" + - vdata: 'C:\Users\LocalAdmin\AppData\Roaming\FAHClient' + +{%- if not salt['service.available']("Folding@home Client") %} +Install fah service: + cmd.run: + - name: '"C:\Program Files (x86)\FAHClient\FAHClient.exe" --install-service' +{%- endif %} + +Start fah client: + service.running: + - name: "Folding@home Client" + - enable: True diff --git a/top.sls b/top.sls index 46fd25d..8f9b870 100644 --- a/top.sls +++ b/top.sls @@ -13,6 +13,8 @@ base: - corelDRAW 'G@os:Windows and G@manufacturer:Dell*': - dell-command-update + 'G@os:Windows and classroomWin': + - fah 'G@os:Windows': - windowsWorkstation - removeShortcuts