From 3b0d333e8791cf9c28b5464be70887eb0cb3d8cd Mon Sep 17 00:00:00 2001 From: Martin Alfke Date: Fri, 9 Dec 2022 17:06:02 +0100 Subject: [PATCH] restart if config file changes (#29) * restart if config file changes * rvm uses unit-file which already handles the service * lint fixes * adopt service name --- manifests/docker.pp | 1 + manifests/rvm.pp | 1 + types/gitdata.pp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/docker.pp b/manifests/docker.pp index ced12b6..1c31a21 100644 --- a/manifests/docker.pp +++ b/manifests/docker.pp @@ -37,6 +37,7 @@ file { "${hdm::hdm_path}/hdm.yml": ensure => file, content => epp('hdm/hdm.yml.epp'), + notify => Service['docker-hdm'], } file { "${hdm::hdm_path}/database.yml": diff --git a/manifests/rvm.pp b/manifests/rvm.pp index 19aa8ad..24c6a37 100644 --- a/manifests/rvm.pp +++ b/manifests/rvm.pp @@ -102,6 +102,7 @@ file { "${hdm::hdm_path}/config/hdm.yml": ensure => file, content => epp('hdm/hdm.yml.epp'), + notify => Service['hdm.service'], } exec { 'bundle db:setup': diff --git a/types/gitdata.pp b/types/gitdata.pp index 98fc210..7535485 100644 --- a/types/gitdata.pp +++ b/types/gitdata.pp @@ -1,6 +1,6 @@ # @summary type to enforce git settings for HDM type Hdm::Gitdata = Array[ - Struct[ + Struct[ { datadir => Stdlib::Unixpath, git_url => String[1],