diff --git a/modules/elastic_recheck/manifests/bot.pp b/modules/elastic_recheck/manifests/bot.pp index f26144ff20..3318bdb810 100644 --- a/modules/elastic_recheck/manifests/bot.pp +++ b/modules/elastic_recheck/manifests/bot.pp @@ -73,7 +73,10 @@ class elastic_recheck::bot ( service { 'elastic-recheck': ensure => running, enable => true, - subscribe => File['/etc/elastic-recheck/elastic-recheck.conf'], + subscribe => [ + File['/etc/elastic-recheck/elastic-recheck.conf'], + Exec['::elastic_recheck::install_elastic-recheck'], + ], require => [ Class['elastic_recheck'], File['/etc/init.d/elastic-recheck'], diff --git a/modules/elastic_recheck/manifests/init.pp b/modules/elastic_recheck/manifests/init.pp index b532c30652..d431bc2384 100644 --- a/modules/elastic_recheck/manifests/init.pp +++ b/modules/elastic_recheck/manifests/init.pp @@ -41,7 +41,6 @@ class elastic_recheck ( command => 'pip install /opt/elastic-recheck', path => '/usr/local/bin:/usr/bin:/bin/', refreshonly => true, - notify => Service['elastic-recheck'], subscribe => Vcsrepo['/opt/elastic-recheck'], require => Class['pip'], }