{% if grains['kernel'] != 'Darwin' %}
FIX enable multiverse:
  pkgrepo.absent:
    - name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

enable multiverse:
  pkgrepo.managed:
    - name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

agree to eula:
  cmd.run:
    - name: echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
{% endif %}

servo-dependencies:
  pkg.installed:
    - pkgs:
      - cmake
      - git
      {% if grains['kernel'] == 'Darwin' %}
      - pkg-config
      - homebrew/versions/autoconf213
      {% else %}
      - libglib2.0-dev
      - libgl1-mesa-dri
      - freeglut3-dev
      - libfreetype6-dev
      - xorg-dev
      - libssl-dev
      - libbz2-dev
      - ttf-mscorefonts-installer
      - xserver-xorg-input-void
      - xserver-xorg-video-dummy
      - xpra
      - libosmesa6-dev
      - gperf
      - autoconf2.13
      {% endif %}
  pip.installed:
    - pkgs:
      - virtualenv
      - ghp-import

{% if grains['kernel'] != 'Darwin' %}
FIX enable multiverse:
  pkgrepo.absent:
    - name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

enable multiverse:
  pkgrepo.managed:
    - name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

ttf-mscorefonts-installer:
  debconf.set:
    - name: ttf-mscorefonts-installer
    - data: { 'msttcorefonts/accepted-mscorefonts-eula': { 'type': 'boolean', 'value': True } }
  pkg.installed:
    - pkgs:
      - ttf-mscorefonts-installer
    - requires:
      - debconf: ttf-mscorefonts-installer
{% endif %}

servo-dependencies:
  pkg.installed:
    - pkgs:
      - cmake
      - git
      {% if grains['kernel'] == 'Darwin' %}
      - pkg-config
      - homebrew/versions/autoconf213
      {% else %}
      - libglib2.0-dev
      - libgl1-mesa-dri
      - freeglut3-dev
      - libfreetype6-dev
      - xorg-dev
      - libssl-dev
      - libbz2-dev
      - xserver-xorg-input-void
      - xserver-xorg-video-dummy
      - xpra
      - libosmesa6-dev
      - gperf
      - autoconf2.13
      {% endif %}
  pip.installed:
    - pkgs:
      - virtualenv
      - ghp-import

Use debconf.set state instead of cmd.run
Use debconf.set state instead of cmd.run

UK992/saltfs,ALikhachev/saltfs,rwaweber/saltfs,setupminimal/saltfs,servo/saltfs,ALikhachev/saltfs,rwaweber/saltfs,UK992/saltfs,ALikhachev/saltfs,servo/saltfs,setupminimal/saltfs,rwaweber/saltfs,UK992/saltfs,setupminimal/saltfs