Make clean state run by explicitly checking if init system is available

This commit is contained in:
Denys Havrysh
2017-01-06 16:37:07 +02:00
parent d4ed4be16e
commit 87f6cd880c
2 changed files with 25 additions and 19 deletions

View File

@@ -1,5 +1,3 @@
{%- from "postgres/map.jinja" import postgres with context -%}
######################################################################
# ATTENTION! Managed by SaltStack. #
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN! #
@@ -22,7 +20,7 @@ local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
{%- for acl in postgres.acls %}
{%- for acl in acls %}
{%- if acl|first() == 'local' %}
{%- if acl|length() == 3 %}