Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@garbast
Created October 17, 2015 14:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save garbast/ff5e36d55c11c7558a3b to your computer and use it in GitHub Desktop.
Save garbast/ff5e36d55c11c7558a3b to your computer and use it in GitHub Desktop.
Install steam via saltstack
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
@holmboe
Copy link

holmboe commented Oct 19, 2015

Nice one!

@mhlavac
Copy link

mhlavac commented Jan 27, 2017

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