Fix lint warnings about ensure placement

This commit is contained in:
Ossi Salmi 2015-05-04 11:00:36 +03:00
parent a8ebd9417c
commit 96fb1bacbc
21 changed files with 53 additions and 48 deletions

View file

@ -14,11 +14,11 @@ class lynx {
if $::operatingsystem != "OpenBSD" {
package { "lynx":
ensure => installed,
name => $::operatingsystem ? {
"ubuntu" => "lynx-cur",
default => "lynx",
},
ensure => installed,
before => File["/usr/local/bin/html2text"],
}
}
@ -33,11 +33,11 @@ class lynx {
}
file { "lynx-site.cfg":
ensure => present,
name => $::operatingsystem ? {
"ubuntu" => "/etc/lynx-cur/local.cfg",
default => "/etc/lynx-site.cfg",
},
ensure => present,
content => template("lynx/lynx-site.cfg.erb"),
mode => 0644,
owner => "root",