commit | ca508c458f37c1cea20899d16bdd364367929568 | [log] [tgz] |
---|---|---|
author | Martin Polreich <polreichmartin@gmail.com> | Thu Jun 08 14:31:49 2017 +0200 |
committer | Martin Polreich <polreichmartin@gmail.com> | Thu Jun 08 14:31:56 2017 +0200 |
tree | e747c02db152f466227a007a411b3250d2ed9045 | |
parent | ecff62a1cb71ee5d9bf78ffa10f0187da36eb196 [diff] |
Simplify 'noservices' condition
diff --git a/etcd/server/service.sls b/etcd/server/service.sls index e43f2a0..daa4f6c 100644 --- a/etcd/server/service.sls +++ b/etcd/server/service.sls
@@ -152,9 +152,9 @@ service.running: - enable: True - name: {{ server.services }} - {% if grains.noservices is defined %} - - onlyif: {% if grains.get('noservices', "True") %}"True"{% else %}False{% endif %} - {% endif %} + {%- if grains.get('noservices') %} + - onlyif: /bin/false + {%- endif %} {%- endif %}