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.

25 line
565B

  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. /etc/bash.bashrc:
  8. file.replace:
  9. - pattern: ".*PS1=.*"
  10. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  11. /etc/skel/.bashrc:
  12. file.replace:
  13. - pattern: ".*PS1=.*"
  14. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  15. /root/.bashrc:
  16. file.replace:
  17. - pattern: ".*PS1=.*"
  18. - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
  19. {%- endif %}