updated tmux state

This commit is contained in:
Paul 2022-12-26 10:13:15 +01:00
parent 2802893ae7
commit d22796053c
3 changed files with 19 additions and 14 deletions

11
states/tmux/config.sls Normal file
View File

@ -0,0 +1,11 @@
---
{%- from "tmux/map.jinja" import tmux with context %}
tmux-config:
file.managed:
- name: /etc/tmux.conf
- source: salt://tmux/tmux.conf.j2
- user: root
- group: root
- template: jinja
- require:
- pkg: tmux-pkg

View File

@ -1,15 +1,4 @@
--- ---
{%- from "tmux/map.jinja" import tmux with context %} include:
tmux-pkg: - .install
pkg.latest: - .config
- name: tmux
tmux-config:
file.managed:
- name: /etc/tmux.conf
- source: salt://tmux/tmux.conf.j2
- user: root
- group: root
- template: jinja
- require:
- pkg: tmux-pkg

5
states/tmux/install.sls Normal file
View File

@ -0,0 +1,5 @@
---
{%- from "tmux/map.jinja" import tmux with context %}
tmux-pkg:
pkg.installed:
- name: tmux