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

Diff of /puppet/modules/mirror/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 827 by misc, Sun Nov 21 18:05:23 2010 UTC revision 828 by boklm, Tue Jan 18 15:10:30 2011 UTC
# Line 1  Line 1 
1  class mirror {  class mirror {
2        class base {
3      file { "update_timestamp":          file { "/home/mirror/bin/":
4          path => "/home/mirror/bin/update_timestamp",              ensure => directory,
5          ensure => present,              owner => mirror,
6          owner => mirror,              group => mirror,
7          group => mirror,              mode => 755
8          mode => 755,          }
9          content => template("mirror/update_timestamp")  
10      }          group {"mirror":
11                ensure => present,
12      file { "/home/mirror/bin/":          }
13          ensure => directory,  
14          owner => mirror,          user {"mirror":
15          group => mirror,              ensure => present,
16          mode => 755                     comment => "System user use to run mirror scripts",
17      }                     managehome => true,
18                       gid => mirror,
19      group {"mirror":                     shell => "/bin/bash",
20          ensure => present,          }
21      }      }
22    
23      user {"mirror":      # For main Mageia mirror
24          ensure => present,      class main inherits base {
25          comment => "System user use to run mirror scripts",          file { "update_timestamp":
26          managehome => true,              path => "/home/mirror/bin/update_timestamp",
27          gid => mirror,              ensure => present,
28          shell => "/bin/bash",              owner => mirror,
29                group => mirror,
30                mode => 755,
31                content => template("mirror/update_timestamp")
32            }
33    
34            cron { mirror:
35                user => mirror,
36                hour => 10,
37                minute => 14,
38                command => "~mirror/bin/update_timestamp",
39                require => File["update_timestamp"],
40            }
41      }      }
   
   
     cron { mirror:  
         user => mirror,  
         hour => 10,  
         minute => 14,  
         command => "~mirror/bin/update_timestamp",  
         require => File["update_timestamp"],  
     }  
   
42  }  }

Legend:
Removed from v.827  
changed lines
  Added in v.828

  ViewVC Help
Powered by ViewVC 1.1.30