From ca482fc86e65960e1f51c886da65dcc15e28413c Mon Sep 17 00:00:00 2001 From: Ciaby Date: Fri, 18 Sep 2015 23:08:05 +0200 Subject: [PATCH] Ensure that the machine is running the latest version of LCR. --- modules/rhizo_base/manifests/lcr.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/rhizo_base/manifests/lcr.pp b/modules/rhizo_base/manifests/lcr.pp index db88b22..75ce725 100644 --- a/modules/rhizo_base/manifests/lcr.pp +++ b/modules/rhizo_base/manifests/lcr.pp @@ -12,8 +12,14 @@ # class rhizo_base::lcr { package { 'lcr': - ensure => installed, + ensure => latest, require => Class['rhizo_base::apt'], + notify => Exec['restart-lcr'], + } + + exec { 'restart-lcr': + command => '/usr/bin/sv restart lcr', + refreshonly => true, } service { 'lcr':