1 Puppet::Type.newtype(:es_instance_conn_validator) do
3 @doc = "Verify that a connection can be successfully established between a node
4 and the Elasticsearch instance. It could potentially be used for other
5 purposes such as monitoring."
12 newparam(:name, :namevar => true) do
13 desc 'An arbitrary name used as the identity of the resource.'
17 desc 'DNS name or IP address of the server where Elasticsearch instance should be running.'
22 desc 'The port that the Elasticsearch instance should be listening on.'
27 desc 'The max number of seconds that the validator should wait before giving up and deciding that the Elasticsearch instance is not running; defaults to 60 seconds.'
30 # This will raise an error if the string is not convertible to an integer