screenrc moved to users formula

This commit is contained in:
2025-05-05 01:09:12 -04:00
parent e2b71b8ae0
commit 151e56e2cf
3 changed files with 19 additions and 3 deletions

4
users/files/screenrc Normal file
View File

@@ -0,0 +1,4 @@
vbell off
termcapinfo xterm ti@:te@
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g} ][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

View File

@@ -1,3 +1,12 @@
screen:
pkg.installed: []
/root/.screenrc:
file.managed:
- source: salt://users/files/screenrc
- user: root
- group: root
- mode: 640
{% if salt.pillar.get('manage_root_bashrc', False) %}
/root/.bashrc:
@@ -6,7 +15,7 @@
- template: jinja
- user: root
- group: root
- mode: 0640
- mode: 640
- context:
bashrc_user: root
{% endif %}
@@ -41,7 +50,15 @@
bashrc_user: {{ user }}
- require:
- user: {{ user }}_user
{% endif %}
{{ homedir }}/.screenrc:
file.managed:
- source: salt://users/files/screenrc
- user: {{ user }}
- group: {{ user }}
- mode: 640
{% endif %}
{% endif %}
{% endfor %}