Saltstack Official Linux Formula
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- {%- 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 %}
|