nova/api: purge archive_deleted_rows via cron
authorEmilien Macchi <emilien@redhat.com>
Mon, 18 Jul 2016 14:23:34 +0000 (10:23 -0400)
committerEmilien Macchi <emilien@redhat.com>
Mon, 18 Jul 2016 14:23:34 +0000 (10:23 -0400)
The code was in THT before but now in the Nova API profile.

Change-Id: I7035f7998c11dc5508dae8c1a750b93c2944b2d4

manifests/profile/base/nova/api.pp

index 3b36c57..763dc41 100644 (file)
@@ -46,5 +46,11 @@ class tripleo::profile::base::nova::api (
     }
     include ::nova::network::neutron
   }
+
+  if $step >= 5 {
+    if hiera('nova_enable_db_purge', true) {
+      include ::nova::cron::archive_deleted_rows
+    }
+  }
 }