Skip to content

Commit

Permalink
feat(formula): add metastate per community convention
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jul 17, 2019
1 parent 6a31254 commit 2b981ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ Available states
.. contents::
:local:

``salt``
^^^^^^^^

*Meta-state (This is a state that includes other states)*.

This sets up a pkg repo (some OSes), and will run the
minion, master, ssh, and formulas states.

``salt.minion``
^^^^^^^^^^^^^^^

Expand Down
9 changes: 9 additions & 0 deletions salt/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
base:
'*':
{%- if grains.os_family| lower not in ('macos',) %}
{{'- salt.pkgrepo' if grains.os_family|lower not in ('suse', 'freebsd', 'macos') else '' }} #Is suse fixed yet?
- salt.minion
- salt.master
- salt.ssh
- salt.formulas
{%- endif %}

0 comments on commit 2b981ac

Please sign in to comment.