Skip to content

Instantly share code, notes, and snippets.

@eliasp
Created November 9, 2014 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliasp/ab3133a8e4aa58fdea28 to your computer and use it in GitHub Desktop.
Save eliasp/ab3133a8e4aa58fdea28 to your computer and use it in GitHub Desktop.
microsoft.office:
15.0.4420.1017: # 2013
installer: salt://win/repo/microsoft/office/2013/setup.exe
full_name: Microsoft Office Professional Plus 2013
reboot: False
install_flags: ' /adminfile microsoft.office.2013.msp'
msiexec: False
uninstaller: salt://win/repo/microsoft/office/2013/setup.exe
uninstall_flags: ' /uninstall'
# TODO: Find a better way to do this. Currently, the win_repo will only sync the installer-file itself to the client
# which will cause trouble in case the installation requires more files than simply a single MSI package or EXE file
office-installer-files:
{% if 'microsoft.office' in salt['pkg.list_pkgs']() %}
file.absent:
- name: c:\salt\var\cache\salt\minion\files\base\win\repo\microsoft\office\2013
{% else %}
file.recurse:
- name: c:\salt\var\cache\salt\minion\files\base\win\repo\microsoft\office\2013
- source: salt://win/repo/microsoft/office/2013
{% endif %}
microsoft.office:
pkg:
- installed
- allow_updates: True
- require:
- file: office-installer-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment