lynx: Added html2text script.

This commit is contained in:
Timo Makinen 2013-10-31 10:10:08 +02:00
parent 5c77e2fda6
commit bd6b4c1e8a
2 changed files with 15 additions and 0 deletions

3
lynx/files/html2text Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cat $* | lynx -restrictions=all -dump -stdin -localhost -force_html -realm

View file

@ -19,6 +19,7 @@ class lynx {
default => "lynx",
},
ensure => installed,
before => File["/usr/local/bin/html2text"],
}
}
@ -50,4 +51,15 @@ class lynx {
},
}
file { "/usr/local/bin/html2text":
ensure => present,
source => "puppet:///modules/lynx/html2text",
mode => "0755",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
}
}