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:
parent
12cd4dcd68
commit
05fc037265
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue