{% if grains['kernel'] == 'Linux' %} {% if grains['os_family'] == 'Debian' %} Debian Chrome Add Repo: pkgrepo.managed: - name: deb http://linux.teamviewer.com/deb stable main - file: /etc/apt/sources.list.d/teamviewer.list - enable: 1 - key_url: https://dl.google.com/linux/linux_signing_key.pub # - gpgkey: https://dl.google.com/linux/linux_signing_key.pub {% elif grains['os_family'] == 'RedHat' %} TeamViewer: pkgrepo.managed: - humanname: Repository Teamviewer pour Rehat family - baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64 - enable: 1 - gpgcheck: 1 - gpgkey: https://dl.google.com/linux/linux_signing_key.pub - skip_if_unavailable: 1 {% endif %} Teamviewer installation: pkg.installed: - pkgs: - teamviewer-host {% endif %}