New Saltstack Salt formula
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.

architect.py 644B

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