]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/keystone/lib/puppet/type/keystone_service.rb
Revert "add stackforge/keystone to 3rdparty"
[dsa-puppet.git] / 3rdparty / modules / keystone / lib / puppet / type / keystone_service.rb
diff --git a/3rdparty/modules/keystone/lib/puppet/type/keystone_service.rb b/3rdparty/modules/keystone/lib/puppet/type/keystone_service.rb
deleted file mode 100644 (file)
index 9b2c1d9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-# LP#1408531
-File.expand_path('../..', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
-require 'puppet/util/openstack'
-Puppet::Type.newtype(:keystone_service) do
-
-  desc 'This type can be used to manage keystone services.'
-
-  ensurable
-
-  newparam(:name, :namevar => true) do
-    desc 'The name of the service.'
-    newvalues(/\S+/)
-  end
-
-  newproperty(:id) do
-    validate do |v|
-      raise(Puppet::Error, 'This is a read only property')
-    end
-  end
-
-  newproperty(:type) do
-    desc 'The type of service'
-    validate do |value|
-      fail('The service type is required.') unless value
-    end
-  end
-
-  newproperty(:description) do
-    desc 'A description of the service.'
-    defaultto('')
-  end
-
-  # This ensures the service is started and therefore the keystone
-  # config is configured IF we need them for authentication.
-  # If there is no keystone config, authentication credentials
-  # need to come from another source.
-  autorequire(:service) do
-    ['keystone']
-  end
-
-  auth_param_doc=<<EOT
-If no other credentials are present, the provider will search in
-/etc/keystone/keystone.conf for an admin token and auth url.
-EOT
-  Puppet::Util::Openstack.add_openstack_type_methods(self, auth_param_doc)
-end