From f16ab085ad42be7cc50ba8ef8c62087f2319700e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se> Date: Wed, 30 Sep 2020 15:41:33 +0200 Subject: [PATCH] Require on_update.sh to exist in update_repo. --- manifests/opendsa.pp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/manifests/opendsa.pp b/manifests/opendsa.pp index fc2662a..90651f7 100644 --- a/manifests/opendsa.pp +++ b/manifests/opendsa.pp @@ -46,6 +46,7 @@ class aes::opendsa { user => root, group => root, cwd => "${opendsa_home}", + require => File["${opendsa_home}/on_update.sh"], } file { "${opendsa_home}/manage.sh": @@ -56,16 +57,6 @@ class aes::opendsa { source => "puppet:///modules/${module_name}/opendsa/manage.sh", } - # Temporary! - file { '/opt/utils/update_repo.sh': - ensure => file, - mode => '0755', - owner => root, - group => root, - content => file("${module_name}/update_repo.sh"), - } - - # Do we need port 12000 open? NO service { "${opendsa_service}" : ensure => "running", -- GitLab