20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/chef_metal/openstack_credentials.rb', line 20
def load_yaml(credentials_yaml_file)
creds_file = YAML.load_file(File.expand_path(credentials_yaml_file))
creds_file.each do |section, creds|
@credentials[section] = {
:openstack_username => creds_file[section]['openstack_username'],
:openstack_api_key => creds_file[section]['openstack_api_key'],
:openstack_tenant => creds_file[section]['openstack_tenant'],
:openstack_auth_url => creds_file[section]['openstack_auth_url']
}
end
end
|