diff options
author | Michael Scherer <misc@mageia.org> | 2011-07-19 22:32:05 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-07-19 22:32:05 +0000 |
commit | bba9352de9eece35792d7ab5bc130fb4dce8131f (patch) | |
tree | 21b8bb9b7221b35bb1cf714473ed344d22c8b1c2 | |
parent | 19dea40afe9c246fc2954c29f063e944da089fe0 (diff) | |
download | puppet-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 )
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 9 |
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", } |