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 %}
tmux-pkg:
pkg.latest:
- 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
include:
- .install
- .config

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