From bd74906131e196f419e5226edd8e4365ea5a90be Mon Sep 17 00:00:00 2001 From: Michael Lustfield Date: Sat, 6 May 2023 14:21:06 -0500 Subject: [PATCH] Simplify ssh state matching --- states/top.sls | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/states/top.sls b/states/top.sls index 8482982..0865815 100644 --- a/states/top.sls +++ b/states/top.sls @@ -25,6 +25,11 @@ base: - sudo - users + # Server + '* and not *pc*': + - match: compound + - ssh + # Laptop w/ Gnome3 '*pc*': - desktop.cinnamon @@ -33,21 +38,9 @@ base: - user_policies - signal - 'mikepc*': - - extras.mikepc - - # Test Systems - 'test*': - - ssh - - # Dev Systems - 'dev*': - - ssh - - # TODO: Temporary relocation - 'media*': - - ssh 'irc*': - - ssh - irssi - webapps + + 'mikepc*': + - extras.mikepc