Install Folding@Home on all the classroom computers
This commit is contained in:
parent
0c83b2d13e
commit
e2afe33492
14
fah-config.xml
Normal file
14
fah-config.xml
Normal 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
41
fah.sls
Normal 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
|
Loading…
Reference in New Issue
Block a user