New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334
  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