On 11/22/2011 08:51 AM, [email protected] wrote:
> Forum: CFEngine Help
> Subject: Re: Methods example
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,24034,24039#msg-24039
> 
> I think it is best to keep the method bundles self contained.  I don't like 
> using the method and then generating a report elsewhere.  In place of curl 
> try this: 
> http://cfengine.com/manuals/cf3-solutions.html#Read-from-a-TCP-socket

Well I was just using a report to illustrate. Moreso than a report the
class triggering some action to happen like another bundle that went and
tried to restart the service or something.

The thought being drop in re-usable without having to alter the bundle.
You might need to write some more policy around the result etc ..

I tried using the readtcp function first, which is how I wound up with
the check_http_status bundle. I was only getting the http status code
back, similar to the example. I used curl when I want to check that some
specific content on the page exists.


-- 
Nick Anderson <[email protected]>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to