New version of salt-formula from Saltstack
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

35 lines
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