Remove elasticsearch module, it is no longer needed
[mirror/dsa-puppet.git] / 3rdparty / modules / elasticsearch / lib / puppet / type / es_instance_conn_validator.rb
diff --git a/3rdparty/modules/elasticsearch/lib/puppet/type/es_instance_conn_validator.rb b/3rdparty/modules/elasticsearch/lib/puppet/type/es_instance_conn_validator.rb
deleted file mode 100644 (file)
index 5ecd14d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-Puppet::Type.newtype(:es_instance_conn_validator) do
-
-  @doc = "Verify that a connection can be successfully established between a node
-  and the Elasticsearch instance. It could potentially be used for other
-  purposes such as monitoring."
-  
-  ensurable do
-    defaultvalues
-    defaultto :present
-  end
-
-  newparam(:name, :namevar => true) do
-    desc 'An arbitrary name used as the identity of the resource.'
-  end
-
-  newparam(:server) do
-    desc 'DNS name or IP address of the server where Elasticsearch instance should be running.'
-    defaultto 'localhost'
-  end
-
-  newparam(:port) do
-    desc 'The port that the Elasticsearch instance should be listening on.'
-    defaultto 9200
-  end
-
-  newparam(:timeout) do
-    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.'
-    defaultto 60
-    validate do |value|
-      # This will raise an error if the string is not convertible to an integer
-      Integer(value)
-    end
-    munge do |value|
-      Integer(value)
-    end
-  end
-
-end