Allow to not manage Tempest code in Puppet

In the case you are using a package, you may want the flexibility to not
use VCS to manage Tempest code and just use the Puppet module to
configure Tempest itself.

Adding a new parameter, true by default to keep backward compatibility.

Change-Id: I6d5c17393630fda156bebc55fe28f97bcabecca4
This commit is contained in:
Emilien Macchi 2014-12-03 14:54:05 -05:00
parent 12cd4dcd68
commit 05fc037265
1 changed files with 57 additions and 48 deletions

View File

@ -6,6 +6,9 @@
# managed in tempest.conf.
#
class tempest(
$install_from_source = true,
$tempest_config_file = '/var/lib/tempest/etc/tempest.conf',
# Clone config
#
$tempest_repo_uri = 'git://github.com/openstack/tempest.git',
@ -72,6 +75,7 @@ class tempest(
include 'tempest::params'
if $install_from_source {
ensure_packages([
'git',
'python-setuptools',
@ -127,6 +131,11 @@ class tempest(
path => $tempest_conf,
require => File[$tempest_conf],
}
} else {
Tempest_config {
path => $tempest_config_file,
}
}
tempest_config {
'compute/change_password_available': value => $change_password_available;