Saltstack Official Linux Formula
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- {%- 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 %}
|