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

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

Issue 10960026: Sync devbuilds to downloads.adblockplus.org (Closed)
Patch Set: Created June 19, 2013, 10:35 a.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
Index: modules/downloadserver/manifests/init.pp
===================================================================
--- a/modules/downloadserver/manifests/init.pp
+++ b/modules/downloadserver/manifests/init.pp
@@ -96,4 +96,49 @@
user => hg,
minute => '*/10'
}
+
+ user {'rsync':
+ ensure => present,
+ home => '/home/rsync',
+ managehome => true
+ }
+
+ file {'/home/rsync/.ssh':
+ ensure => directory,
+ require => User['rsync'],
+ owner => rsync,
+ mode => 0600;
+ }
+
+ file {'/home/rsync/.ssh/known_hosts':
+ ensure => file,
+ owner => rsync,
+ mode => 0444,
+ source => 'puppet:///modules/downloadserver/known_hosts'
+ }
+
+ file {'/home/rsync/.ssh/id_rsa':
+ ensure => file,
+ owner => rsync,
+ mode => 0400,
+ source => 'puppet:///modules/private/rsync@downloads.adblockplus.org'
+ }
+
+ file {'/home/rsync/.ssh/id_rsa.pub':
+ ensure => file,
+ owner => rsync,
+ mode => 0400,
+ source => 'puppet:///modules/private/rsync@downloads.adblockplus.org.pub'
+ }
+
+ cron {'mirror-devbuilds':
+ ensure => present,
+ require => [File['/home/rsync/.ssh/known_hosts'],
+ File['/home/rsync/.ssh/id_rsa'],
+ Exec['fetch_downloads']]
+ command => 'rsync -e ssh -ltprz rsync@adblockplus.org:. /var/www/downloads/devbuilds',
Wladimir Palant 2013/06/19 10:43:44 1) The rsync user on adblockplus.org is locked dow
+ user => rsync,
+ hour => '*',
+ minute => '4-54/10'
+ }
}
« no previous file with comments | « modules/downloadserver/files/known_hosts ('k') | modules/private-stub/files/rsync@downloads.adblockplus.org » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld