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

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

Issue 29464559: #1538 - Remove class statsmaster and associated resources (Closed)
Patch Set: Created June 13, 2017, 9:43 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 class statsmaster(
2 $domain,
3 $certificate,
4 $private_key,
5 $is_default=false
6 ) {
7
8 include statsmaster::downloads, statsmaster::awstats
9
10 user {'stats':
11 ensure => present,
12 home => '/home/stats',
13 managehome => true,
14 }
15
16 File {
17 group => root,
18 }
19
20 file {'/home/stats/.ssh':
21 ensure => directory,
22 owner => stats,
23 mode => 0600,
24 require => User['stats'],
25 }
26
27 file {'/home/stats/.ssh/id_rsa':
28 ensure => present,
29 owner => stats,
30 mode => 0400,
31 source => 'puppet:///modules/private/stats@stats.adblockplus.org',
32 }
33
34 class {'nginx':
35 worker_connections => 4000,
36 ssl_session_cache => off,
37 }
38
39 file {'/var/www':
40 ensure => directory,
41 mode => 0755,
42 owner => root
43 }
44
45 file {'/var/www/htpasswd':
46 ensure => file,
47 mode => 0444,
48 source => 'puppet:///modules/private/stats-htpasswd',
49 owner => root,
50 }
51
52 nginx::hostconfig{$domain:
53 source => 'puppet:///modules/statsmaster/site.conf',
54 is_default => $is_default,
55 certificate => $certificate,
56 private_key => $private_key,
57 log => 'access_log_stats'
58 }
59
60 file {'/opt/cron_geoipdb_update.sh':
61 ensure => absent,
62 }
63
64 cron {'geoipdb_update':
65 ensure => 'absent',
66 }
67
68 class {'geoip':
69 cron => {
70 'hour' => 3,
71 'minute' => 15,
72 'monthday' => 3,
73 },
74 script => '/opt/cron_geoipdb_update.py',
75 }
76 }
OLDNEW

Powered by Google App Engine
This is Rietveld