screenrc moved to users formula
This commit is contained in:
4
users/files/screenrc
Normal file
4
users/files/screenrc
Normal 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}]'
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user