From bba9352de9eece35792d7ab5bc130fb4dce8131f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 19 Jul 2011 22:32:05 +0000 Subject: fix permission on maint db dump ( so the cron job can update it ) --- modules/buildsystem/manifests/init.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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", } -- cgit v1.2.1