1 # TODO: This should be extracted into openstacklib during the kilo cycle
2 # Add the auth parameter to whatever type is given
3 module Puppet::Util::Openstack
4 def self.add_openstack_type_methods(type, comment)
6 type.newparam(:auth) do
9 Hash of authentication credentials. Credentials can be specified as
10 password credentials, e.g.:
14 'password' => 'passw0rd',
15 'tenant_name' => 'test',
16 'auth_url' => 'http://localhost:35357/v2.0',
19 or a path to an openrc file containing these credentials, e.g.:
22 'openrc' => '/root/openrc',
25 or a service token and host, e.g.:
28 'service_token' => 'ADMIN',
29 'auth_url' => 'http://localhost:35357/v2.0',
32 If not present, the provider will look for environment variables for
39 raise(Puppet::Error, 'This property must be a hash') unless value.is_a?(Hash)
43 type.autorequire(:package) do
44 'python-openstackclient'