Files
states/softwares/chrome.sls
Iwan Clément e8fd334853 Typo
2018-05-20 14:37:02 +00:00

25 lines
893 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:
- humanname: Repository Chrome pour Rehat family
- baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
- file: /etc/yum.repos.d/google-chrome.repo
- enable: 1
- gpgcheck: 1
- key_url: https://dl.google.com/linux/linux_signing_key.pub
- skip_if_unavailable: 1
- enabled_metadata: 1
{% endif %}
Chrome installation:
pkg.installed:
- pkgs:
- google-chrome-stable
{% endif %}