Merge "Fix nova::quota param quota_ram misspelling."
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
class nova::quota(
|
class nova::quota(
|
||||||
$quota_instances = 10,
|
$quota_instances = 10,
|
||||||
$quota_cores = 20,
|
$quota_cores = 20,
|
||||||
$quota_rams = 51200,
|
$quota_ram = 51200,
|
||||||
$quota_volumes = 10,
|
$quota_volumes = 10,
|
||||||
$quota_gigabytes = 1000,
|
$quota_gigabytes = 1000,
|
||||||
$quota_floating_ips = 10,
|
$quota_floating_ips = 10,
|
||||||
@@ -21,7 +21,7 @@ class nova::quota(
|
|||||||
nova_config {
|
nova_config {
|
||||||
'quota_instances': value => $quota_instances;
|
'quota_instances': value => $quota_instances;
|
||||||
'quota_cores': value => $quota_cores;
|
'quota_cores': value => $quota_cores;
|
||||||
'quota_rams': value => $quota_rams;
|
'quota_ram': value => $quota_ram;
|
||||||
'quota_volumes': value => $quota_volumes;
|
'quota_volumes': value => $quota_volumes;
|
||||||
'quota_gigabytes': value => $quota_gigabytes;
|
'quota_gigabytes': value => $quota_gigabytes;
|
||||||
'quota_floating_ips': value => $quota_floating_ips;
|
'quota_floating_ips': value => $quota_floating_ips;
|
||||||
|
17
spec/classes/nova_quota_spec.rb
Normal file
17
spec/classes/nova_quota_spec.rb
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'nova::quota' do
|
||||||
|
|
||||||
|
it { should contain_nova_config('quota_ram').with_value('51200') }
|
||||||
|
|
||||||
|
describe 'when overriding params' do
|
||||||
|
|
||||||
|
let :params do
|
||||||
|
{:quota_ram => '1'}
|
||||||
|
end
|
||||||
|
|
||||||
|
it { should contain_nova_config('quota_ram').with_value('1') }
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Reference in New Issue
Block a user