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.
|
- {%- from "linux/map.jinja" import system with context %}
- {%- if system.enabled %}
-
- /etc/profile.d/prompt.sh:
- file.managed:
- - source: salt://linux/files/prompt.sh
- - template: jinja
-
- {%- if grains.os_family == 'Debian' %}
- /etc/bash.bashrc:
- file.replace:
- - pattern: ".*PS1=.*"
- - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
-
- /etc/skel/.bashrc:
- file.replace:
- - pattern: ".*PS1=.*"
- - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
-
- /root/.bashrc:
- file.replace:
- - pattern: ".*PS1=.*"
- - repl: ": # Prompt is set by /etc/profile.d/prompt.sh"
- {%- endif %}
-
- {%- endif %}
|