init.sls 370 B

123456789101112131415161718192021
  1. #
  2. # Bash
  3. #
  4. #
  5. # .bashrc for root
  6. /root/.bashrc:
  7. file.managed:
  8. - source: salt://bash/bashrc.root
  9. - template: jinja
  10. #
  11. # Nifty aliases for gateway
  12. {% if 'batman_gw' in salt['pillar.get']('node:roles', []) %}
  13. /root/.bash_aliases:
  14. file.managed:
  15. - source: salt://bash/bash_aliases.root
  16. {% endif %}
  17. # bashrc.user is used in state 'build' for the build user!