Fix lint warnings about ensure placement
This commit is contained in:
parent
a8ebd9417c
commit
96fb1bacbc
21 changed files with 53 additions and 48 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue