From 93f40a75844d8abb26053076740e05c8a1595fdd Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 17 Nov 2014 23:11:29 -0500 Subject: [PATCH] Add refreshonly to 'upgrade_subunit2sql_db' This commit adds refreshonly to the 'upgrade_subunit2sql_db' exec. The problem without this set is that subscribing to the Pip package generates an event on each puppet refresh, which causes the db-manage utility to run a migration update every 15 min, which is far from ideal. Setting refreshonly means that the command is only run when the resource changes, in this case when a new package version is installed, which is the desired behavior. Change-Id: Ib77d68f19edbf48a8d8cf4e757dbfb6463f1c6bb --- manifests/server.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/server.pp b/manifests/server.pp index d9cab2b..864e06c 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -31,5 +31,6 @@ class subunit2sql::server ( command => 'subunit2sql-db-manage --config-file /etc/subunit2sql.conf upgrade head', path => '/usr/local/bin:/usr/bin:/bin/', subscribe => Package['subunit2sql'], + refreshonly => true, } }