154 |
$maintdb_dbdir = "$maintdb_homedir/db" |
$maintdb_dbdir = "$maintdb_homedir/db" |
155 |
$maintdb_binpath = "/usr/local/sbin/maintdb" |
$maintdb_binpath = "/usr/local/sbin/maintdb" |
156 |
$maintdb_wrappath = "/usr/local/bin/wrapper.maintdb" |
$maintdb_wrappath = "/usr/local/bin/wrapper.maintdb" |
157 |
|
$maintdb_dump = "/var/www/bs/data/maintdb.txt" |
158 |
|
|
159 |
user {"$maintdb_login": |
user {"$maintdb_login": |
160 |
ensure => present, |
ensure => present, |
192 |
content => template("buildsystem/sudoers.maintdb") |
content => template("buildsystem/sudoers.maintdb") |
193 |
} |
} |
194 |
|
|
195 |
|
file { "$maintdb_dump": |
196 |
|
ensure => present, |
197 |
|
owner => $maintdb_login, |
198 |
|
mode => 644, |
199 |
|
} |
200 |
|
|
201 |
cron { "update maintdb export": |
cron { "update maintdb export": |
202 |
user => $maintdb_login, |
user => $maintdb_login, |
203 |
command => "$maintdb_binpath root get > /var/www/bs/data/maintdb.txt", |
command => "$maintdb_binpath root get > $maintdb_dump", |
204 |
minute => "*/30", |
minute => "*/30", |
205 |
} |
} |
206 |
|
|