Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Remove sync-asset-manager-from-master cron job from asset slave
Browse files Browse the repository at this point in the history
This cron job was marked as 'absent' in this PR [1] which has been
applied in all environments and so it's now safe to remove the
definition.

[1]: #7016
  • Loading branch information
floehopper committed Feb 5, 2018
1 parent 0e18cba commit bf42ba5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/govuk/manifests/node/s_asset_slave.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
require => File['/data/master-uploads'],
}

cron { 'sync-asset-manager-from-master':
ensure => 'absent',
user => 'assets',
minute => '*/10',
command => '/usr/bin/setlock -n /var/tmp/asset-manager.lock /usr/bin/rsync -a --delete /data/master-uploads/asset-manager/ /mnt/uploads/asset-manager',
}

$master_metrics_hostname = regsubst($::fqdn_metrics, 'slave-\d', 'master-1')
$graphite_mnt_uploads_metric = 'df-mnt-uploads.df_complex-used'
$master_metric = "${master_metrics_hostname}.${graphite_mnt_uploads_metric}"
Expand Down

0 comments on commit bf42ba5

Please sign in to comment.