Skip to content

Commit

Permalink
restart if config file changes (#29)
Browse files Browse the repository at this point in the history
* restart if config file changes

* rvm uses unit-file which already handles the service

* lint fixes

* adopt service name
  • Loading branch information
tuxmea committed Dec 9, 2022
1 parent 19520d0 commit 3b0d333
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/docker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
1 change: 1 addition & 0 deletions manifests/rvm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion types/gitdata.pp
Original file line number Diff line number Diff line change
@@ -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],
Expand Down

0 comments on commit 3b0d333

Please sign in to comment.