Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2015 12:26
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 anonymous/3fad341210fb26b96d9e to your computer and use it in GitHub Desktop.
Save anonymous/3fad341210fb26b96d9e to your computer and use it in GitHub Desktop.
Install Adobe Reader
'Adobe Reader XI (11.0.10) - Français':
11.0.10:
full_name: 'Adobe Reader XI (11.0.10) - Français'
installer: 'http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.10/fr_FR/AdbeRdr11010_fr_FR.exe'
reboot: False
locale: fr_FR
install_flags: ' /msi EULA_ACCEPT=YES REMOVE_PREVIOUS=YES /qn'
uninstaller: 'msiexec.exe'
uninstall_flags: '/qn /x {AC76BA86-7AD7-1033-7B44-AB0000000001}'
base:
'*':
- common
root@bss-salt:/srv/salt# ^C
root@bss-salt:/srv/salt# cat common.sls
Mozilla Firefox 38.0.1 (x86 fr):
pkg:
- installed
Google Chrome:
pkg:
- installed
7-Zip 9.20 (x64 edition):
pkg:
- installed
Adobe Flash Player 17 ActiveX:
pkg:
- installed
Adobe Reader XI (11.0.10) - Français:
pkg:
- installed
Java 8 Update 45:
pkg:
- installed
Microsoft Security Essential:
pkg:
- installed
PDFcreator:
pkg:
- installed
Teamviewer 9:
pkg:
- installed
base:
'*':
- common
@jeanneret
Copy link

when I use salt-run winrepo.genrepo I got this:
u'Adobe Reader XI (11.0.10) - Fran\xe7ais': {'11.0.10': {'full_name': u'Adobe Reader XI (11.0.10) - Fran\xe7ais',
'install_flags': ' /msi EULA_ACCEPT=YES REMOVE_PREVIOUS=YES /qn',
'installer': 'http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.10/fr_FR/AdbeRdr11010_fr_FR.exe',
'locale': 'fr_FR',
'reboot': False,
'uninstall_flags': '/qn /x {AC76BA86-7AD7-1033-7B44-AB0000000001}',
'uninstaller': 'msiexec.exe'}},

And when I want to do a highstate.state he can't find the program on the computer

@jeanneret
Copy link

When I try to highstate.state I got this : bss-laptop17.blues2.local:
The minion function caused an exception: Traceback (most recent call last):
File "c:\salt\bin\lib\site-packages\salt\minion.py", line 1020, in _thread_return
return_data = func(_args, *_kwargs)
File "c:\salt\bin\lib\site-packages\salt\modules\state.py", line 325, in highstate
whitelist=kwargs.get('whitelist')
File "c:\salt\bin\lib\site-packages\salt\state.py", line 2923, in call_highstate
return self.state.call_high(high)
File "c:\salt\bin\lib\site-packages\salt\state.py", line 2018, in call_high
chunks = self.compile_high_data(high)
File "c:\salt\bin\lib\site-packages\salt\state.py", line 1124, in compile_high_data
chunks = self.order_chunks(chunks)
File "c:\salt\bin\lib\site-packages\salt\state.py", line 1063, in order_chunks
chunks.sort(key=lambda chunk: (chunk['order'], '{0[state]}{0[name]}{0[fun]}'.format(chunk)))
File "c:\salt\bin\lib\site-packages\salt\state.py", line 1063, in
chunks.sort(key=lambda chunk: (chunk['order'], '{0[state]}{0[name]}{0[fun]}'.format(chunk)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 32: ordinal not in range(128)
With or without ' '

@anlutro
Copy link

anlutro commented May 19, 2015

Try replacing

Adobe Reader XI (11.0.10) - Français:
 pkg:
  - installed

with something like this:

adobe_reader:
 pkg:
  - installed
  - name: 'Adobe Reader XI (11.0.10) - Français'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment