On Tue, Mar 27, 2012 at 2:24 PM, Krzysztof Wilczynski <
krzysztof.wilczyn...@linux.com> wrote:

> Ho David,
>
>
> On Tuesday, 27 March 2012 19:05:09 UTC+1, David Garvey wrote:
>>
>> Can I check if a port is open for DSL? I need to check if the box has an
>> acl allowing the nagios server to connect via nrpe before writing nagios
>> config.
>
> [...]
>
> Managing firewall using Puppet as well, as per what Jeff suggested, is of
> course the preferred way to solve this sort of problem, but if you need to
> check whether a port is open, then have a look:
> https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/is_port_open.rb
>
> Jeff will probably not approve of that :-)
>

Eh, I may surprise you...  I don't think my approval matters much at all
and I'm a fan of whatever works for the problem at hand given the tools we
have today.

I can totally see the value of a function that automatically figures out if
a remote port is _actually_ open and listening, rather than _should_ be
open and listening, from the perspective of the Puppet master.

With that said, I'm more interested in the problem David is facing than I
am in a specific solution solution because I'm pretty sure Puppet doesn't
have the capability to solve this in a elegant, simple and easy way.  We
can solve it with a custom function or custom fact today, but I'd like to
make this easier for everyone in the future.

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to