From 1bd67db2c6e72d66a8057c9cf6bc0d08cade6876 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Mon, 21 Oct 2013 12:05:29 +0300 Subject: [PATCH] tmux: Install tmux with screenish configuration --- tmux/files/tmux.conf | 9 +++++++++ tmux/manifests/init.pp | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tmux/files/tmux.conf create mode 100644 tmux/manifests/init.pp diff --git a/tmux/files/tmux.conf b/tmux/files/tmux.conf new file mode 100644 index 0000000..327a50a --- /dev/null +++ b/tmux/files/tmux.conf @@ -0,0 +1,9 @@ +set -g prefix C-a +set -g base-index 1 +set -g status off +bind C-a send-prefix +bind C-l last-window +bind C-n next-window +bind C-p previous-window +bind C-@ next-window +bind Space next-window diff --git a/tmux/manifests/init.pp b/tmux/manifests/init.pp new file mode 100644 index 0000000..fdd3a89 --- /dev/null +++ b/tmux/manifests/init.pp @@ -0,0 +1,23 @@ +# Install tmux +# +class tmux { + + if $::operatingsystem != "OpenBSD" { + package { "tmux": + ensure => installed, + before => File["/etc/tmux.conf"], + } + } + + file { "/etc/tmux.conf": + ensure => present, + mode => "0644", + owner => "root", + group => $::operatingsystem ? { + "openbsd" => "wheel", + default => "root", + }, + source => "puppet:///modules/tmux/tmux.conf", + } + +}