diff --git a/lynx/files/html2text b/lynx/files/html2text new file mode 100755 index 0000000..f40bb72 --- /dev/null +++ b/lynx/files/html2text @@ -0,0 +1,3 @@ +#!/bin/sh + +cat $* | lynx -restrictions=all -dump -stdin -localhost -force_html -realm diff --git a/lynx/manifests/init.pp b/lynx/manifests/init.pp index f0b8fb2..a4505b7 100644 --- a/lynx/manifests/init.pp +++ b/lynx/manifests/init.pp @@ -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", + }, + } + }