Created
October 17, 2015 14:06
-
-
Save garbast/ff5e36d55c11c7558a3b to your computer and use it in GitHub Desktop.
Install steam via saltstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg_steam_license: | |
cmd.run: | |
- unless: which steam | |
- name: '/bin/echo /usr/bin/debconf steam/license note | /usr/bin/debconf-set-selections' | |
- require_in: | |
- pkg: steam | |
- cmd: dpkg_steam_question | |
dpkg_steam_question: | |
cmd.run: | |
- unless: which steam | |
- name: '/bin/echo /usr/bin/debconf steam/question select "I AGREE" | /usr/bin/debconf-set-selections' | |
- require_in: | |
- pkg: steam | |
steam: | |
pkg.installed |
This didn't work for me anymore.
This works on Ubuntu 16.04:
debconf-utils:
pkg.installed
steam:
debconf.set:
- data:
steam/question: {'type': 'select', 'value': 'I AGREE'}
steam/license: {'type': 'note', 'value': ''}
- require:
- pkg: debconf-utils
pkg.installed:
- sources:
- steam-launcher: https://steamcdn-a.akamaihd.net/client/installer/steam.deb
- require:
- debconf: steam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice one!