lynx: Added html2text script.
This commit is contained in:
parent
5c77e2fda6
commit
bd6b4c1e8a
2 changed files with 15 additions and 0 deletions
3
lynx/files/html2text
Executable file
3
lynx/files/html2text
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cat $* | lynx -restrictions=all -dump -stdin -localhost -force_html -realm
|
|
@ -19,6 +19,7 @@ class lynx {
|
||||||
default => "lynx",
|
default => "lynx",
|
||||||
},
|
},
|
||||||
ensure => installed,
|
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",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue