From 55c0c81a24767ae5cac92eddc66305fe4f9605e8 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Tue, 22 Jun 2021 11:36:46 +0200
Subject: [PATCH] Simplified open-vm-tools installation

---
 hshbase/openvmtools.sls | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/hshbase/openvmtools.sls b/hshbase/openvmtools.sls
index 4c01a79..43f16b2 100644
--- a/hshbase/openvmtools.sls
+++ b/hshbase/openvmtools.sls
@@ -2,27 +2,12 @@
 
 {% if hshbase.openvmtools %}
 
-# For Debian/Ubuntu >6, wheezy packages have different names.
-# Also, wheezy packages don't work, so they still get vmware stuff!
-# this block can be removed when everything is > debian 9
-{% if grains['os'] in ['Debian', 'Ubuntu'] and grains['oscodename'] not in ['squeeze', 'wheezy', 'stretch', 'buster', 'bionic'] %}
-hsh_openvmtools:
-  pkg.installed:
-    - pkgs: [open-vm-tools, open-vm-tools-dkms]
-    - refresh: True
-
-# Debian buster does not include the dkms package anymore
-{% elif grains['os'] in ['Debian', 'Ubuntu'] and grains['oscodename'] in ['buster', 'bionic'] %}
+{% if grains['os'] in ['Debian', 'Ubuntu'] %}
 hsh_openvmtools:
   pkg.installed:
     - pkgs: [open-vm-tools]
     - refresh: True
 
-{% elif grains['os'] == 'FreeBSD' %}
-hsh_openvmtools:
-  pkg.installed:
-    - pkgs: [open-vm-tools-nox11]
-
 {% endif %}
 
 {% endif %}
-- 
GitLab