Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/statsmaster/manifests/init.pp

Issue 29326111: Issue 3010 - Introduce class geoip (Closed)
Patch Set: Created Sept. 8, 2015, 12:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/statsmaster/files/cron_geoipdb_update.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class statsmaster( 1 class statsmaster(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default=false 5 $is_default=false
6 ) { 6 ) {
7 7
8 include statsmaster::downloads, statsmaster::awstats 8 include statsmaster::downloads, statsmaster::awstats
9 9
10 # Realize known_hosts from base module 10 # Realize known_hosts from base module
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 is_default => $is_default, 57 is_default => $is_default,
58 certificate => $certificate, 58 certificate => $certificate,
59 private_key => $private_key, 59 private_key => $private_key,
60 log => 'access_log_stats' 60 log => 'access_log_stats'
61 } 61 }
62 62
63 file {'/opt/cron_geoipdb_update.sh': 63 file {'/opt/cron_geoipdb_update.sh':
64 ensure => absent, 64 ensure => absent,
65 } 65 }
66 66
67 file {'/opt/cron_geoipdb_update.py': 67 cron {'geoipdb_update':
68 ensure => file, 68 ensure => 'absent',
69 owner => root,
70 mode => 0750,
71 source => 'puppet:///modules/statsmaster/cron_geoipdb_update.py',
72 } 69 }
73 70
74 cron {'geoipdb_update': 71 class {'geoip':
75 ensure => present, 72 cron => {
76 require => File['/opt/cron_geoipdb_update.py'], 73 'environment' => ['MAILTO=admins@adblockplus.org,root'],
77 command => '/opt/cron_geoipdb_update.py', 74 'hour' => 3,
78 environment => ['MAILTO=admins@adblockplus.org,root'], 75 'minute' => 15,
79 user => root, 76 'monthday' => 3,
80 hour => 3, 77 },
81 minute => 15, 78 script => '/opt/cron_geoipdb_update.py',
82 monthday => 3,
83 } 79 }
84 } 80 }
OLDNEW
« no previous file with comments | « modules/statsmaster/files/cron_geoipdb_update.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld