From c1339c08b527054adace65562ef7208745d0c038 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sep 06 2017 18:01:13 +0000 Subject: Sort hats in wiki AppArmor profile Salt uses a randomly-looking (but still stable) sort order in the for loop. Using |sort will ensure alphabetic sorting and makes the aa-logprof diff readable. (Only vhost_files is a bit special and will still move around.) --- diff --git a/salt/profile/wiki/files/httpd2-prefork.apparmor b/salt/profile/wiki/files/httpd2-prefork.apparmor index eff8d80..69ddd2d 100644 --- a/salt/profile/wiki/files/httpd2-prefork.apparmor +++ b/salt/profile/wiki/files/httpd2-prefork.apparmor @@ -124,7 +124,7 @@ profile httpd2-prefork /usr/sbin/httpd{,2}-prefork flags=(complain,attach_discon /srv/www/files.opensuse.org/public/** r, } - # {% for wiki in pillar['mediawiki_1_27']['wikis'] %} + # {% for wiki in pillar['mediawiki_1_27']['wikis']|sort %} ^vhost_{{wiki}}wiki flags=(complain,attach_disconnected) { #include #include