В Срд, 29/06/2016 в 12:17 -0600, David Boucha пишет:
> Salt doesn't have anything that does this specifically out of the box.
> However it should be pretty straightforward to either write your own
> python module or possibly a salt runner that would query that
> information from your minions and use that information to build the
> wiki page you're looking for.
but similiar thing can be easily done by reversing task: not detect what
is inside system, but state how we configure system:
create some grains/pillars that describe your configuration:
roles:
- apache
- salt-master
....
apache:
site:
-
www.example.com
-
www.something.com
...
then apply reqiured states depending on that grains/pillars set for
specific minion via top-file targeting specific states for specific
minion
then generate your markdown text file using that grains/pillars using
jinja
HTH