Saltstack Official Linux Formula
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.

пре 9 година
пре 9 година
пре 9 година
1234567891011121314151617181920212223242526
  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. /etc/profile.d/prompt.sh:
  4. file.managed:
  5. - source: salt://linux/files/prompt.sh
  6. - template: jinja
  7. {%- if grains.os_family == 'Debian' %}
  8. /etc/bash.bashrc:
  9. file.replace:
  10. - pattern: ".*PS1=.*"
  11. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  12. /etc/skel/.bashrc:
  13. file.replace:
  14. - pattern: ".*PS1=.*"
  15. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  16. /root/.bashrc:
  17. file.replace:
  18. - pattern: ".*PS1=.*"
  19. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  20. {%- endif %}
  21. {%- endif %}