Install Folding@Home on all the classroom computers

This commit is contained in:
Adam Goldsmith 2020-09-13 17:10:06 -04:00
parent 0c83b2d13e
commit e2afe33492
3 changed files with 57 additions and 0 deletions

14
fah-config.xml Normal file
View File

@ -0,0 +1,14 @@
<config>
<!-- User Information -->
<passkey v='832616a6533405c7832616a6533405c7'/>
<team v='247608'/>
<user v='Claremont_MakerSpace'/>
<!-- Folding Slots -->
<slot id='0' type='CPU'>
<paused v='true'/>
</slot>
<command-enable v='true'/>
<password v='Unuyohp7aef8eQu4'/>
</config>

41
fah.sls Normal file
View File

@ -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

View File

@ -13,6 +13,8 @@ base:
- corelDRAW - corelDRAW
'G@os:Windows and G@manufacturer:Dell*': 'G@os:Windows and G@manufacturer:Dell*':
- dell-command-update - dell-command-update
'G@os:Windows and classroomWin':
- fah
'G@os:Windows': 'G@os:Windows':
- windowsWorkstation - windowsWorkstation
- removeShortcuts - removeShortcuts