Add lockfile as a paramater

This commit is contained in:
Derek Higgins 2012-04-11 13:45:45 +00:00
parent f7ca79ac29
commit e27a15da7d
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class nova(
$service_down_time = 60,
$logdir = '/var/log/nova',
$state_path = '/var/lib/nova',
$lock_path = '/var/lock/nova',
$lock_path = $::nova::params::lock_path,
$verbose = false,
$nodaemon = false,
$periodic_interval = '60',

View File

@ -30,6 +30,7 @@ class nova::params {
$special_service_provider = 'init'
# redhat specific config defaults
$root_helper = 'sudo nova-rootwrap'
$lock_path = '/var/lib/nova/tmp'
}
'Debian': {
# package names
@ -59,6 +60,7 @@ class nova::params {
$tgt_service_name = 'tgt'
# debian specific nova config
$root_helper = 'sudo nova-rootwrap'
$lock_path = '/var/lock/nova'
}
default: {
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")