init.sls 398 B

1234567891011121314151617181920212223
  1. #
  2. # Bash
  3. #
  4. {%- import "globals.sls" as globals with context %}
  5. #
  6. # .bashrc for root
  7. /root/.bashrc:
  8. file.managed:
  9. - source: salt://bash/bashrc.root
  10. - template: jinja
  11. #
  12. # Nifty aliases for gateway
  13. {% if 'gateway' in globals.ROLES %}
  14. /root/.bash_aliases:
  15. file.managed:
  16. - source: salt://bash/bash_aliases.root
  17. {% endif %}
  18. # bashrc.user is used in state 'build' for the build user!