projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try with modules from master
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
keystone
/
lib
/
puppet
/
type
/
keystone_endpoint.rb
diff --git
a/3rdparty/modules/keystone/lib/puppet/type/keystone_endpoint.rb
b/3rdparty/modules/keystone/lib/puppet/type/keystone_endpoint.rb
index
4b0e6df
..
43c5eb2
100644
(file)
--- a/
3rdparty/modules/keystone/lib/puppet/type/keystone_endpoint.rb
+++ b/
3rdparty/modules/keystone/lib/puppet/type/keystone_endpoint.rb
@@
-1,6
+1,7
@@
# LP#1408531
File.expand_path('../..', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
# LP#1408531
File.expand_path('../..', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
-require 'puppet/util/openstack'
+File.expand_path('../../../../openstacklib/lib', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
+
Puppet::Type.newtype(:keystone_endpoint) do
desc 'Type for managing keystone endpoints.'
Puppet::Type.newtype(:keystone_endpoint) do
desc 'Type for managing keystone endpoints.'
@@
-38,10
+39,4
@@
Puppet::Type.newtype(:keystone_endpoint) do
(region, service_name) = self[:name].split('/')
[service_name]
end
(region, service_name) = self[:name].split('/')
[service_name]
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
end