1 # Add the auth parameter to whatever type is given
2 module Puppet::Util::Aviator
3 def self.add_aviator_params(type)
5 type.newparam(:auth) do
8 Hash of authentication credentials. Credentials can be specified as
9 password credentials, e.g.:
13 'password' => 'passw0rd',
14 'tenant_name' => 'test',
15 'host_uri' => 'http://localhost:35357/v2.0',
18 or a path to an openrc file containing these credentials, e.g.:
21 'openrc' => '/root/openrc',
24 or a service token and host, e.g.:
27 'service_token' => 'ADMIN',
28 'host_uri' => 'http://localhost:35357/v2.0',
31 If not present, the provider will first look for environment variables
32 for password credentials and then to /etc/keystone/keystone.conf for a
37 raise(Puppet::Error, 'This property must be a hash') unless value.is_a?(Hash)
41 type.newparam(:log_file) do
42 desc 'Log file. Defaults to no logging.'
43 defaultto('/dev/null')