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

Unified Diff: modules/updateserver/manifests/init.pp

Issue 11439212: Add server21 as updateserver (Closed)
Patch Set: Addressed issues Created Aug. 16, 2013, 2:07 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/updateserver/files/update.adblockplus.org ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/updateserver/manifests/init.pp
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/updateserver/manifests/init.pp
@@ -0,0 +1,62 @@
+class updateserver {
+ class {'nginx':
+ worker_processes => 2,
+ worker_connections => 4000,
+ ssl_session_cache => off,
+ }
+
+ File {
+ owner => root,
+ group => root
+ }
+
+ file {'/var/www':
+ ensure => directory,
+ mode => 0755,
+ require => Package['nginx']
+ }
+
+ file {'/var/www/update':
+ ensure => directory,
+ mode => 0755
+ }
+
+ file {'/var/www/update/adblockplusie':
+ ensure => directory,
+ mode => 0755
+ }
+
+ file {'/var/www/update/adblockplusie/update.json':
+ ensure => file,
+ source => 'puppet:///modules/updateserver/adblockplusie/update.json',
+ mode => 0644
+ }
+
+ file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key':
+ ensure => file,
+ notify => Service['nginx'],
+ before => Nginx::Hostconfig['update.adblockplus.org'],
+ mode => 0400,
+ source => 'puppet:///modules/private/adblockplus.org_sslcert.key'
+ }
+
+ file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem':
+ ensure => file,
+ notify => Service['nginx'],
+ before => Nginx::Hostconfig['update.adblockplus.org'],
+ mode => 0400,
+ source => 'puppet:///modules/private/adblockplus.org_sslcert.pem'
+ }
+
+ nginx::hostconfig{'update.adblockplus.org':
+ source => 'puppet:///modules/updateserver/update.adblockplus.org',
+ enabled => true
+ }
+
+ file {'/etc/logrotate.d/nginx_update.adblockplus.org':
+ ensure => file,
+ mode => 0444,
+ require => Nginx::Hostconfig['update.adblockplus.org'],
+ source => 'puppet:///modules/updateserver/logrotate'
+ }
+}
« no previous file with comments | « modules/updateserver/files/update.adblockplus.org ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld