New Saltstack Salt formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

35 rindas
644B

  1. # -*- coding: utf-8 -*-
  2. '''
  3. Salt modules to work with the Architect service.
  4. '''
  5. # Import python libs
  6. from __future__ import absolute_import
  7. import logging
  8. __virtualname__ = 'architect'
  9. logger = logging.getLogger(__name__)
  10. def __virtual__():
  11. return __virtualname__
  12. def node_info():
  13. '''
  14. Get Salt minion metadata and forward it to the Architect master.
  15. CLI Examples:
  16. .. code-block:: bash
  17. salt-call architect.minion_info
  18. '''
  19. data = {
  20. 'pillar': __salt__['pillar.data'](),
  21. 'grain': __salt__['grains.items'](),
  22. 'lowstate': __salt__['state.show_lowstate'](),
  23. }
  24. return data