-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathretrospect-mac-10.sls
31 lines (25 loc) · 965 Bytes
/
retrospect-mac-10.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
### Uninstalls and reinstalls Retrospect
copy working files:
file.recurse:
- name: /root/salt_repo/Retrospect_Client_MAC-10.5.0
- source: salt://salt_repo/Retrospect_Client_MAC-10.5.0
- file_mode: 755
execute uninstaller:
cmd.script:
- name: Retrospect_Client_Uninstall.sh
- source: salt://salt_repo/Retrospect_Client_MAC-10.5.0/Retrospect_Client_Uninstall.sh
set the state file which is the access password:
file.managed:
- name: /Library/Preferences/retroclient.state
- source: salt://salt_repo/Retrospect_Client_MAC-10.5.0/retroclient.state
- mode: 644
install client:
cmd.run:
- name: installer -pkg Retrospect_Client_Installer.pkg -target /
- cwd: /root/salt_repo/Retrospect_Client_MAC-10.5.0/
turn on the client:
cmd.run:
- name: launchctl load -w /Library/LaunchDaemons/com.retrospect.retroclient.plist; pkill -9 retroclient
remove working files:
file.absent:
- name: /root/salt_repo/Retrospect_Client_MAC-10.5.0/