tmux: Lint fixes
This commit is contained in:
parent
966cac5728
commit
418407b8fe
1 changed files with 21 additions and 21 deletions
|
@ -2,32 +2,32 @@
|
||||||
#
|
#
|
||||||
# === Parameters
|
# === Parameters
|
||||||
#
|
#
|
||||||
# $source:
|
# $source:
|
||||||
# Configuration file source. None by default.
|
# Configuration file source. None by default.
|
||||||
#
|
#
|
||||||
class tmux($source=undef) {
|
class tmux($source=undef) {
|
||||||
|
|
||||||
if $::operatingsystem != "OpenBSD" {
|
if $::operatingsystem != 'OpenBSD' {
|
||||||
package { "tmux":
|
package { 'tmux':
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
before => $source ? {
|
before => $source ? {
|
||||||
undef => undef,
|
undef => undef,
|
||||||
default => File["/etc/tmux.conf"],
|
default => File['/etc/tmux.conf'],
|
||||||
},
|
},
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if $source {
|
if $source {
|
||||||
file { "/etc/tmux.conf":
|
file { '/etc/tmux.conf':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => "0644",
|
mode => '0644',
|
||||||
owner => "root",
|
owner => 'root',
|
||||||
group => $::operatingsystem ? {
|
group => $::operatingsystem ? {
|
||||||
"openbsd" => "wheel",
|
'openbsd' => 'wheel',
|
||||||
default => "root",
|
default => 'root',
|
||||||
},
|
},
|
||||||
source => $source,
|
source => $source,
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue