2 File.expand_path('../..', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
3 File.expand_path('../../../../openstacklib/lib', File.dirname(__FILE__)).tap { |dir| $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir) }
5 Puppet::Type.newtype(:keystone_service) do
7 desc 'This type can be used to manage keystone services.'
11 newparam(:name, :namevar => true) do
12 desc 'The name of the service.'
18 raise(Puppet::Error, 'This is a read only property')
23 desc 'The type of service'
25 fail('The service type is required.') unless value
29 newproperty(:description) do
30 desc 'A description of the service.'
34 # This ensures the service is started and therefore the keystone
35 # config is configured IF we need them for authentication.
36 # If there is no keystone config, authentication credentials
37 # need to come from another source.
38 autorequire(:service) do