aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/iurt
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-16 22:46:51 +0000
committerMichael Scherer <misc@mageia.org>2012-03-16 22:46:51 +0000
commit8f42e0533bd34f1bc2200d8e97fbe729fe69f038 (patch)
treee35ec40cba0dba748ec2d8df673b648323e4a2cf /modules/buildsystem/manifests/iurt
parent7221579bb55dd9a571db4212fc6d994bfa182867 (diff)
downloadpuppet-8f42e0533bd34f1bc2200d8e97fbe729fe69f038.tar
puppet-8f42e0533bd34f1bc2200d8e97fbe729fe69f038.tar.gz
puppet-8f42e0533bd34f1bc2200d8e97fbe729fe69f038.tar.bz2
puppet-8f42e0533bd34f1bc2200d8e97fbe729fe69f038.tar.xz
puppet-8f42e0533bd34f1bc2200d8e97fbe729fe69f038.zip
move iurtupload.pp to iurt/upload.pp ( so everything related to iurt is in one directory )
Diffstat (limited to 'modules/buildsystem/manifests/iurt')
-rw-r--r--modules/buildsystem/manifests/iurt/upload.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/iurt/upload.pp b/modules/buildsystem/manifests/iurt/upload.pp
new file mode 100644
index 00000000..e971e338
--- /dev/null
+++ b/modules/buildsystem/manifests/iurt/upload.pp
@@ -0,0 +1,16 @@
+class buildsystem::iurt::upload {
+ $login = $buildsystem::iurt::user::login
+ $homedir = $buildsystem::iurt::user::homedir
+
+ file { '/etc/iurt/upload.conf':
+ require => File['/etc/iurt'],
+ 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',
+ }
+}