aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/maintdb.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-16 22:46:43 +0000
committerMichael Scherer <misc@mageia.org>2012-03-16 22:46:43 +0000
commitc4e891d7298f3f20a984ed3016852561faaa63b1 (patch)
tree36a988eac6afa2fb813057d001daf7b58dff5f09 /modules/buildsystem/manifests/maintdb.pp
parent80678161f223855d1b693d31690e680f96c6191a (diff)
downloadpuppet-c4e891d7298f3f20a984ed3016852561faaa63b1.tar
puppet-c4e891d7298f3f20a984ed3016852561faaa63b1.tar.gz
puppet-c4e891d7298f3f20a984ed3016852561faaa63b1.tar.bz2
puppet-c4e891d7298f3f20a984ed3016852561faaa63b1.tar.xz
puppet-c4e891d7298f3f20a984ed3016852561faaa63b1.zip
clean maintdb.pp from all puppetlint errors
Diffstat (limited to 'modules/buildsystem/manifests/maintdb.pp')
-rw-r--r--modules/buildsystem/manifests/maintdb.pp105
1 files changed, 51 insertions, 54 deletions
diff --git a/modules/buildsystem/manifests/maintdb.pp b/modules/buildsystem/manifests/maintdb.pp
index 58e67a9f..156821e1 100644
--- a/modules/buildsystem/manifests/maintdb.pp
+++ b/modules/buildsystem/manifests/maintdb.pp
@@ -1,56 +1,53 @@
-class buildsystem {
- class maintdb {
- include sudo
- $login = "maintdb"
- $homedir = "/var/lib/maintdb"
- $dbdir = "$homedir/db"
- $binpath = "/usr/local/sbin/maintdb"
- $dump = "/var/www/bs/data/maintdb.txt"
- $unmaintained = "/var/www/bs/data/unmaintained.txt"
-
- user {"$login":
- comment => "Maintainers database",
- home => "$homedir",
- }
-
- file { ["$homedir","$dbdir"]:
- ensure => directory,
- owner => "$login",
- group => "$login",
- mode => 711,
- require => User["$login"],
- }
-
- file { "$binpath":
- mode => 755,
- content => template("buildsystem/maintdb/maintdb.bin")
- }
-
- local_script { "wrapper.maintdb":
- content => template("buildsystem/maintdb/wrapper.maintdb")
- }
-
- sudo::sudoers_config { "maintdb":
- content => template("buildsystem/maintdb/sudoers.maintdb")
- }
-
- file { ["$dump","$dump.new",
- "$unmaintained","$unmaintained.new"]:
- owner => $login,
- require => File["/var/www/bs/data"],
- }
-
- cron { "update maintdb export":
- user => $login,
- command => "$binpath root get > $dump.new; cp -f $dump.new $dump; grep ' nobody\$' $dump | sed 's/ nobody\$//' > $unmaintained.new; cp -f $unmaintained.new $unmaintained",
- minute => "*/30",
- require => User[$login],
- }
-
- apache::vhost_base { "maintdb.$domain":
- location => $dbdir,
- content => template("buildsystem/maintdb/vhost_maintdb.conf"),
- }
+class buildsystem::maintdb {
+ include sudo
+ $login = 'maintdb'
+ $homedir = '/var/lib/maintdb'
+ $dbdir = "$homedir/db"
+ $binpath = '/usr/local/sbin/maintdb'
+ $dump = '/var/www/bs/data/maintdb.txt'
+ $unmaintained = '/var/www/bs/data/unmaintained.txt'
+
+ user { $login:
+ comment => 'Maintainers database',
+ home => $homedir,
+ }
+
+ file { [$homedir,$dbdir]:
+ ensure => directory,
+ owner => $login,
+ group => $login,
+ mode => '0711',
+ require => User[$login],
+ }
+
+ file { $binpath:
+ mode => '0755',
+ content => template('buildsystem/maintdb/maintdb.bin')
+ }
+
+ local_script { 'wrapper.maintdb':
+ content => template('buildsystem/maintdb/wrapper.maintdb')
}
-}
+ sudo::sudoers_config { 'maintdb':
+ content => template('buildsystem/maintdb/sudoers.maintdb')
+ }
+
+ file { [$dump,"$dump.new",
+ $unmaintained,"$unmaintained.new"]:
+ owner => $login,
+ require => File['/var/www/bs/data'],
+ }
+
+ cron { 'update maintdb export':
+ user => $login,
+ command => "$binpath root get > $dump.new; cp -f $dump.new $dump; grep ' nobody\$' $dump | sed 's/ nobody\$//' > $unmaintained.new; cp -f $unmaintained.new $unmaintained",
+ minute => '*/30',
+ require => User[$login],
+ }
+
+ apache::vhost_base { "maintdb.$::domain":
+ location => $dbdir,
+ content => template('buildsystem/maintdb/vhost_maintdb.conf'),
+ }
+}