Use correct variable for host_access dependency

The keystone::db::mysql resource declares resources using
`$real_allowed_hosts` which is a copy of `$allowed_hosts` minus `$host`.
But then it declares dependencies using `$allowed_hosts` which includes
`$host` and will fail catalog compilation due to a missing dependency

This bug only affects users if the value of `$host` is included in the
array of `$allowed_hosts`

Change-Id: Ifdd8793bcf36178efd1a083ee35649d56dc3d768
This commit is contained in:
Hunter Haugen 2014-03-26 17:46:01 -07:00
parent bd3b5c5d53
commit 7813820abd
2 changed files with 5 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class keystone::db::mysql(
mysql_module => $mysql_module,
}
Keystone::Db::Mysql::Host_access[$allowed_hosts] -> Exec<| title == 'keystone-manage db_sync' |>
Keystone::Db::Mysql::Host_access[$real_allowed_hosts] -> Exec<| title == 'keystone-manage db_sync' |>
}

View File

@ -3,7 +3,10 @@ require 'spec_helper'
describe 'keystone::db::mysql' do
let :pre_condition do
'include mysql::server'
[
'include mysql::server',
'include keystone::db::sync'
]
end
let :facts do