From b1c24769eff463b39c0a133f87d9f8e6fa7cc315 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sat, 15 Apr 2017 23:59:02 +0200 Subject: gitmirror: declare on-the-pull service to ensure it is running --- modules/gitmirror/manifests/init.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp index 1cff535b..9a7559f7 100644 --- a/modules/gitmirror/manifests/init.pp +++ b/modules/gitmirror/manifests/init.pp @@ -35,6 +35,13 @@ class gitmirror { mode => '0755', } + service { 'on-the-pull': + require => [ + Mga_common::Local_script["on-the-pull"], + File['/etc/init.d/on-the-pull'], + ], + } + mga_common::local_script { 'gitmirror-sync-metadata': content => template('gitmirror/rsync-metadata.sh'), } -- cgit v1.2.1