From 7e98324d2322b1f5372a4d71d983fcf8700755a4 Mon Sep 17 00:00:00 2001 From: ipetepete Date: Tue, 15 Mar 2022 14:15:45 -0700 Subject: [PATCH] added subscribe to gunicorn service --- manifests/install.pp | 1 + manifests/service.pp | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/manifests/install.pp b/manifests/install.pp index e9100f7..9093c51 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -368,6 +368,7 @@ } ~> service {'gunicorn': ensure => 'running', + subscribe => [ Vcsrepo['/opt/mars'] ], } file { '/etc/gunicorn-conf.py' : ensure => 'file', diff --git a/manifests/service.pp b/manifests/service.pp index 73385db..b0dad7c 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -63,12 +63,6 @@ ], } - service { 'gunicorn': - enable => true, - ensure => running, - subscribe => [ Vcsrepo['/opt/mars'] ], - } - exec { 'nginx': command => '/bin/systemctl enable nginx', creates => '/etc/systemd/system/multi-user.target.wants/nginx.service',