File: revert-workspace-patch.patch

package info (click to toggle)
puppet-module-tempest 25.0.0-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,000 kB
  • sloc: ruby: 1,268; python: 38; makefile: 10; sh: 10
file content (67 lines) | stat: -rw-r--r-- 1,881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Index: puppet-module-tempest/manifests/init.pp
===================================================================
--- puppet-module-tempest.orig/manifests/init.pp
+++ puppet-module-tempest/manifests/init.pp
@@ -16,6 +16,8 @@
 #   Defaults to true
 #  [*tempest_repo_uri*]
 #   Defaults to 'https://opendev.org/openstack/tempest'
+#  [*tempest_config_file*]
+#   Defaults to undef
 #  [*tempest_repo_revision*]
 #   Defaults to undef
 #  [*tempest_clone_path*]
@@ -309,6 +311,8 @@
 # DEPREACTED PARAMETERS
 #  [*glance_v2*]
 #   Defaults to true
+#  [*tempest_config_file*]
+#   Defaults to undef
 #  [*identity_uri*]
 #   Defaults to undef
 #  [*keystone_v3*]
@@ -321,6 +325,7 @@
   Stdlib::Absolutepath $tempest_workspace   = '/var/lib/tempest',
   Boolean $install_from_source              = true,
   Boolean $git_clone                        = true,
+  Stdlib::Absolutepath $tempest_config_file = '/var/lib/tempest/etc/tempest.conf',
 
   # Clone config
   #
@@ -583,13 +588,23 @@
     }
 
     $tempest_conf = "${tempest_clone_path}/etc/tempest.conf"
-  } else {
 
+    Tempest_config {
+      path    => $tempest_conf,
+    }
+  } else {
+    Tempest_config {
+      path => $tempest_config_file,
+    }
+  }
+ 
+  if ! $install_from_source {
     package { 'tempest':
       ensure => $package_ensure,
       name   => $::tempest::params::package_name,
       tag    => ['openstack', 'tempest-package'],
     }
+    $tempest_conf = $tempest_config_file
 
     # Create tempest workspace by running tempest init.
     # It will generate etc/tempest.conf, logs and tempest_lock folder
@@ -603,11 +618,6 @@
     Package<| tag == 'tempest-package' |> -> Exec['tempest-workspace']
     Exec['tempest-workspace'] -> Tempest_config<||>
 
-    $tempest_conf = "${tempest_workspace}/etc/tempest.conf"
-  }
-
-  Tempest_config {
-    path => $tempest_conf,
   }
 
   tempest_config {