/[adm]/puppet/modules/mgasoft/manifests/init.pp
ViewVC logotype

Annotation of /puppet/modules/mgasoft/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2436 - (hide annotations) (download)
Sat Feb 18 17:17:15 2012 UTC (8 years, 1 month ago) by misc
File size: 1029 byte(s)
some cleaning ( ie, do not repeat default values ), some puppet-lint compliance
1 boklm 2349 class mgasoft(
2 boklm 2352 $anonsvn_soft = 'svn://svn.mageia.org/svn/soft',
3 boklm 2349 $pubinfodir = '/var/lib/mgasoft/infos',
4     $pubmirrordir = '/distrib/mirror/software',
5 boklm 2354 $svn_soft_publish = 'file:///svn/soft_publish',
6 boklm 2349 $mgasoft_login = 'mgasoft'
7     ) {
8 misc 2436 group { $mgasoft_login: }
9    
10 boklm 2349 user { $mgasoft_login:
11 misc 2436 comment => 'System user to publish software',
12     managehome => true,
13     home => "/var/lib/$mgasoft_login",
14     gid => $mgasoft_login,
15     require => Group[$mgasoft_login],
16 boklm 2349 }
17    
18 misc 2436 package { 'mgasoft-publish': }
19 boklm 2349
20     file { '/etc/mgasoft.conf':
21 misc 2436 content => template('mgasoft/mgasoft.conf'),
22 boklm 2349 }
23    
24     subversion::snapshot { $pubinfodir:
25 misc 2436 source => $svn_soft_publish,
26     user => $mgasoft_login,
27     refresh => '0',
28     require => User[$mgasoft_login],
29 boklm 2349 }
30 boklm 2355
31     cron { "mgasoft-publish":
32 misc 2436 command => '/usr/bin/mgasoft-publish',
33     user => $mgasoft_login,
34     minute => '*/5',
35 misc 2435 require => User[$mgasoft_login],
36 boklm 2355 }
37 boklm 2349 }

  ViewVC Help
Powered by ViewVC 1.1.26