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

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

Issue 6029451183783936: Add Filtermaster (Closed)
Patch Set: All Done Created Nov. 14, 2013, 3:26 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
Index: modules/filterserver/manifests/init.pp
===================================================================
--- a/modules/filterserver/manifests/init.pp
+++ b/modules/filterserver/manifests/init.pp
@@ -84,15 +84,21 @@
mode => 0600;
}
- file {'/home/rsync/.ssh/known_hosts':
- ensure => file,
- require => [
- File['/home/rsync/.ssh'],
- User['rsync']
- ],
+ concat {'/home/rsync/.ssh/known_hosts':
owner => rsync,
mode => 0444,
- source => 'puppet:///modules/filterserver/known_hosts'
+ }
+
+ concat::fragment {'filtermaster_hostname':
+ target => '/home/rsync/.ssh/known_hosts',
+ content => 'filtermaster.adblockplus.org ',
+ order => 1,
+ }
+
+ concat::fragment {'filtermaster_hostkey':
+ target => '/home/rsync/.ssh/known_hosts',
+ source => 'puppet:///modules/private/filtermaster.adblockplus.org_ssh.pub',
+ order => 2,
}
file {'/home/rsync/.ssh/id_rsa':
@@ -124,7 +130,7 @@
File['/home/rsync/.ssh/id_rsa'],
User['rsync']
],
- command => 'rsync -e ssh -ltprz --delete rsync@ssh.adblockplus.org:. /var/www/easylist/',
+ command => 'rsync -e ssh -ltprz --delete rsync@filtermaster1.adblockplus.org:. /var/www/easylist/',
environment => ['MAILTO=admins@adblockplus.org,root'],
user => rsync,
hour => '*',
« no previous file with comments | « modules/filterserver/files/known_hosts ('k') | modules/private-stub/files/filtermaster.adblockplus.org_ssh.key » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld