Files
states/softwares/chrome.sls
2018-05-20 14:30:24 +00:00

23 lines
845 B
Plaintext

{% if grains['kernel'] == 'Linux' %}
{% if grains['os_family'] == 'Debian' %}
Debian Chrome Add Repo:
pkgrepo.managed:
- name: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
- file: /etc/apt/sources.list.d/google-chrome.list
- enable: 1
- key_url: https://dl.google.com/linux/linux_signing_key.pub
{% elif grains['os_family'] == 'Redhat' %}
Redhat Chrome Add Repo:
pkgrepo.managed:
- baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
- name: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
- file: /etc/yum.repos.d/google-chrome.repo
- enable: 1
- key_url: https://dl.google.com/linux/linux_signing_key.pub
{% endif %}
Chrome installation:
pkg.installed:
- pkgs:
- google-chrome-stable
{% endif %}