diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:25 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:25 +0000 |
commit | 55c7aa3a7a0c3432c4ca94e20305b550810f79cb (patch) | |
tree | 620fd581ead532b863aa92c1fdd7e5672f5d2b68 /modules/buildsystem/manifests | |
parent | b74151bf723df3fcadf24d2f6e00401bb69c1020 (diff) | |
download | puppet-55c7aa3a7a0c3432c4ca94e20305b550810f79cb.tar puppet-55c7aa3a7a0c3432c4ca94e20305b550810f79cb.tar.gz puppet-55c7aa3a7a0c3432c4ca94e20305b550810f79cb.tar.bz2 puppet-55c7aa3a7a0c3432c4ca94e20305b550810f79cb.tar.xz puppet-55c7aa3a7a0c3432c4ca94e20305b550810f79cb.zip |
add a check to warn use if the iurt config is invalid ( doesn't prevent breakage, but will
warn faster )
Diffstat (limited to 'modules/buildsystem/manifests')
-rw-r--r-- | modules/buildsystem/manifests/iurtupload.pp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/buildsystem/manifests/iurtupload.pp b/modules/buildsystem/manifests/iurtupload.pp index af71ad2f..d42dfa3a 100644 --- a/modules/buildsystem/manifests/iurtupload.pp +++ b/modules/buildsystem/manifests/iurtupload.pp @@ -4,8 +4,13 @@ class buildsystem::iurtupload { file { '/etc/iurt/upload.conf': require => File['/etc/iurt'], - content => template('buildsystem/upload.conf') + content => template('buildsystem/upload.conf'), + notify => Exec['check iurt config'], } -} - + exec { 'check iurt config': + refreshonly => true, + cmd => 'perl -cw /etc/iurt/upload.conf', + logoutput => 'on_failure', + } +} |