/[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 2349 - (hide annotations) (download)
Sun Feb 5 23:54:47 2012 UTC (12 years, 1 month ago) by boklm
File size: 907 byte(s)
add mgasoft module
1 boklm 2349 class mgasoft(
2     $anonsvn_soft = 'svn+ssh://svn.mageia.org/svn/soft',
3     $pubinfodir = '/var/lib/mgasoft/infos',
4     $pubmirrordir = '/distrib/mirror/software',
5     $svn_soft_publish = 'svn+ssh://svn.mageia.org/svn/soft_publish',
6     $mgasoft_login = 'mgasoft'
7     ) {
8     group { $mgasoft_login:
9     ensure => present,
10     }
11     user { $mgasoft_login:
12     ensure => present,
13     comment => "System user to publish software",
14     managehome => true,
15     home => "/var/lib/$mgasoft_login",
16     gid => $mgasoft_login,
17     require => Group[$mgasoft_login],
18     }
19    
20     package { 'mgasoft-publish':
21     ensure => installed,
22     }
23    
24     file { '/etc/mgasoft.conf':
25     ensure => present,
26     owner => root,
27     group => root,
28     mode => 644,
29     content => template('mgasoft/mgasoft.conf'),
30     }
31    
32     subversion::snapshot { $pubinfodir:
33     source => $svn_soft_publish,
34     user => $mgasoft_login,
35     refresh => '0',
36     requires => User[$mgasoft_login],
37     }
38     }

  ViewVC Help
Powered by ViewVC 1.1.30