Fix ACL generation condition
diff --git a/salt/master/service.sls b/salt/master/service.sls
index cba4f2c..3ca6d1c 100644
--- a/salt/master/service.sls
+++ b/salt/master/service.sls
@@ -28,7 +28,7 @@
- watch_in:
- service: salt_master_service
-{%- if master.peer is defined %}
+{%- if master.user is defined %}
/etc/salt/master.d/_acl.conf:
file.managed:
@@ -40,6 +40,10 @@
- watch_in:
- service: salt_master_service
+{%- endif %}
+
+{%- if master.peer is defined %}
+
/etc/salt/master.d/_peer.conf:
file.managed:
- source: salt://salt/files/_peer.conf
@@ -50,7 +54,6 @@
- watch_in:
- service: salt_master_service
-
{%- endif %}
salt_master_service: