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

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

Issue 29363775: Issue 4663 - Remove redundant known_hosts file on download servers (Closed) Base URL: https://hg.adblockplus.org/infrastructure
Patch Set: Created Nov. 22, 2016, 4:04 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/downloadserver/files/known_hosts ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/downloadserver/manifests/init.pp
===================================================================
--- a/modules/downloadserver/manifests/init.pp
+++ b/modules/downloadserver/manifests/init.pp
@@ -93,41 +93,33 @@ class downloadserver(
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'],
+ require => [File['/home/rsync/.ssh/id_rsa'],
File['/var/www/devbuilds']],
- command => 'rsync -e ssh -ltprz --delete devbuilds@ssh.adblockplus.org:. /var/www/devbuilds',
+ command => 'rsync -e ssh -ltprz --delete devbuilds@server16.adblockplus.org:. /var/www/devbuilds',
environment => hiera('cron::environment', []),
user => rsync,
hour => '*',
minute => '4-54/10'
}
}
« no previous file with comments | « modules/downloadserver/files/known_hosts ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld