Skip to content

Commit a823da6

Browse files
feat(formula): add metastate per community convention
1 parent ec7984c commit a823da6

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ Available states
1414

1515
.. contents::
1616
:local:
17+
=======
18+
:local:
19+
20+
``salt``
21+
^^^^^^^^
22+
23+
*Meta-state (This is a state that includes other states)*.
24+
25+
This calls all states which have a corresponding entry in pillar data.
1726

1827
``salt.minion``
1928
---------------

salt/init.sls

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=sls
3+
4+
{%- if salt.pillar.get('salt') %}
5+
include:
6+
{%- if salt.pillar.get('pkgrepo') %}
7+
- salt.pkgrepo
8+
{%- endif %}
9+
{%- if salt.pillar.get('salt:salt_formulas') %}
10+
- salt.formulas
11+
{%- endif %}
12+
{%- if salt.pillar.get('salt:master') %}
13+
- salt.master
14+
{%- endif %}
15+
{%- if salt.pillar.get('salt:api') %}
16+
- salt.api
17+
{%- endif %}
18+
{%- if salt.pillar.get('salt:salt_cloud_certs') %}
19+
- salt.cloud
20+
{%- endif %}
21+
{%- if salt.pillar.get('salt:ssh') %}
22+
- salt.ssh
23+
{%- endif %}
24+
{%- if salt.pillar.get('salt:syndic') %}
25+
- salt.syndic
26+
{%- endif %}
27+
{%- if salt.pillar.get('salt:standalone') %}
28+
- salt.standalone
29+
{%- endif %}
30+
{%- if salt.pillar.get('salt:minion') %}
31+
- salt.minion
32+
{%- endif %}
33+
{%- endif %}

salt/pkgrepo/init.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
{%- if grains.os_family not in ('MacOS', 'Arch') %}
2+
13
include:
24
- .{{ grains['os_family']|lower }}
5+
6+
{%- endif %}

0 commit comments

Comments
 (0)