Skip to content

Commit

Permalink
disable freight cron for archivedeb
Browse files Browse the repository at this point in the history
there is nothing to be cleaned up, so it just wastes a lot of resources
as archivedeb is rather big
  • Loading branch information
evgeni committed Dec 5, 2024
1 parent 7c342ff commit 7fe2062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions puppet/modules/freight/manifests/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Stdlib::Absolutepath $stagedir,
String $vhost,
Variant[String, Array[String]] $cron_matches,
Optional[Boolean] $cron_enable = true,
Optional[String[1]] $stable = undef,
) {
require freight
Expand All @@ -29,6 +30,7 @@

# Cleanup old stuff
file { "/etc/cron.daily/${user}":
ensure => bool2str($cron_enable, 'file', 'absent'),
mode => '0755',
owner => 'root',
group => 'root',
Expand Down
1 change: 1 addition & 0 deletions puppet/modules/web/manifests/vhost/archivedeb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
stagedir => "/var/www/${user}",
vhost => 'archivedeb',
cron_matches => [],
cron_enable => false,
}

secure_ssh::rsync::receiver_setup { $user:
Expand Down

0 comments on commit 7fe2062

Please sign in to comment.