Adds Hiera implementation within Packstack
Packstack configures Hiera as data backend. Packstack puppet templates are now using hiera() and hiera_array() functions to fetch data from hiera backend. Packstack generates a defaults.yaml file in the /var/tmp/packstack directory. Firewall rules for each openstack components are inserted into the hiera backend as hash and created by the create_resources function. Change-Id: Iab553a71264b0fc0f26d33a6304b545ad302f664 Fixes: rhbz#1145223 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
committed by
Lukas Bezdicka
parent
a0454d82fa
commit
219cf98b4f
@@ -1,28 +1,28 @@
|
||||
$config_mongodb_host = hiera('CONFIG_MONGODB_HOST')
|
||||
|
||||
class { 'ceilometer::db':
|
||||
database_connection => 'mongodb://%(CONFIG_MONGODB_HOST)s:27017/ceilometer',
|
||||
database_connection => "mongodb://${config_mongodb_host}:27017/ceilometer",
|
||||
}
|
||||
|
||||
class { 'ceilometer::collector':
|
||||
}
|
||||
class { 'ceilometer::collector': }
|
||||
|
||||
class { 'ceilometer::agent::notification':
|
||||
}
|
||||
class { 'ceilometer::agent::notification': }
|
||||
|
||||
$config_controller_host = hiera('CONFIG_CONTROLLER_HOST')
|
||||
|
||||
class { 'ceilometer::agent::auth':
|
||||
auth_url => 'http://%(CONFIG_CONTROLLER_HOST)s:35357/v2.0',
|
||||
auth_password => '%(CONFIG_CEILOMETER_KS_PW)s',
|
||||
auth_url => "http://${config_controller_host}:35357/v2.0",
|
||||
auth_password => hiera('CONFIG_CEILOMETER_KS_PW'),
|
||||
}
|
||||
|
||||
class { 'ceilometer::agent::central':
|
||||
}
|
||||
class { 'ceilometer::agent::central': }
|
||||
|
||||
class { 'ceilometer::alarm::notifier':
|
||||
}
|
||||
class { 'ceilometer::alarm::notifier':}
|
||||
|
||||
class { 'ceilometer::alarm::evaluator':
|
||||
}
|
||||
class { 'ceilometer::alarm::evaluator':}
|
||||
|
||||
class { 'ceilometer::api':
|
||||
keystone_host => '%(CONFIG_CONTROLLER_HOST)s',
|
||||
keystone_password => '%(CONFIG_CEILOMETER_KS_PW)s',
|
||||
keystone_host => hiera('CONFIG_CONTROLLER_HOST'),
|
||||
keystone_password => hiera('CONFIG_CEILOMETER_KS_PW'),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user