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_domain) do
8 This type can be used to manage
14 newparam(:name, :namevar => true) do
18 newproperty(:enabled) do
19 newvalues(/(t|T)rue/, /(f|F)alse/, true, false )
22 value.to_s.downcase.to_sym
26 newproperty(:description)
28 newproperty(:is_default) do
30 If this is true, this is the default domain used for v2.0 requests when the domain
31 is not specified, or used by v3 providers if no other domain is specified. The id
32 of this domain will be written to the keystone config identity/default_domain_id
35 newvalues(/(t|T)rue/, /(f|F)alse/, true, false )
38 value.to_s.downcase.to_sym
44 raise(Puppet::Error, 'This is a read only property')
48 # we should not do anything until the keystone service is started
49 autorequire(:service) do