aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-07-19 22:32:05 +0000
committerMichael Scherer <misc@mageia.org>2011-07-19 22:32:05 +0000
commitbba9352de9eece35792d7ab5bc130fb4dce8131f (patch)
tree21b8bb9b7221b35bb1cf714473ed344d22c8b1c2 /modules/buildsystem/manifests/init.pp
parent19dea40afe9c246fc2954c29f063e944da089fe0 (diff)
downloadpuppet-bba9352de9eece35792d7ab5bc130fb4dce8131f.tar
puppet-bba9352de9eece35792d7ab5bc130fb4dce8131f.tar.gz
puppet-bba9352de9eece35792d7ab5bc130fb4dce8131f.tar.bz2
puppet-bba9352de9eece35792d7ab5bc130fb4dce8131f.tar.xz
puppet-bba9352de9eece35792d7ab5bc130fb4dce8131f.zip
fix permission on maint db dump ( so the cron job can update it )
Diffstat (limited to 'modules/buildsystem/manifests/init.pp')
-rw-r--r--modules/buildsystem/manifests/init.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index fe53a7a4..cea54f9b 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -154,6 +154,7 @@ class buildsystem {
$maintdb_dbdir = "$maintdb_homedir/db"
$maintdb_binpath = "/usr/local/sbin/maintdb"
$maintdb_wrappath = "/usr/local/bin/wrapper.maintdb"
+ $maintdb_dump = "/var/www/bs/data/maintdb.txt"
user {"$maintdb_login":
ensure => present,
@@ -191,9 +192,15 @@ class buildsystem {
content => template("buildsystem/sudoers.maintdb")
}
+ file { "$maintdb_dump":
+ ensure => present,
+ owner => $maintdb_login,
+ mode => 644,
+ }
+
cron { "update maintdb export":
user => $maintdb_login,
- command => "$maintdb_binpath root get > /var/www/bs/data/maintdb.txt",
+ command => "$maintdb_binpath root get > $maintdb_dump",
minute => "*/30",
}