From 7f03696fea3b36a490ac76a986f42ff80892cc47 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Wed, 6 Aug 2014 09:07:53 +0100 Subject: [PATCH] autorequire service Signed-off-by: Stephen Gran --- lib/puppet/type/rabbitmq_vhost.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppet/type/rabbitmq_vhost.rb b/lib/puppet/type/rabbitmq_vhost.rb index 9dd0982dc..1349be6e5 100644 --- a/lib/puppet/type/rabbitmq_vhost.rb +++ b/lib/puppet/type/rabbitmq_vhost.rb @@ -11,6 +11,8 @@ end end + autorequire(:service) { 'rabbitmq-server' } + newparam(:name, :namevar => true) do 'name of the vhost to add' newvalues(/^\S+$/)