Giuseppe Lavagetto has uploaded a new change for review. https://gerrit.wikimedia.org/r/158612
Change subject: puppet-compiler: alleviate disk space problems ...................................................................... puppet-compiler: alleviate disk space problems In order to solve the long-standing disk space problems in the puppet-compiler ci job, we do the following: - mount in bind the space-eating dirs from /mnt, where we have a large secondary disk. - set up a weekly cronjob that should clean up leftovers Change-Id: Iee31f83e958a856c46c7318cefa70781d8a5d2bb Signed-off-by: Giuseppe Lavagetto <glavage...@wikimedia.org> --- M manifests/role/puppet_compiler.pp 1 file changed, 38 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/12/158612/1 diff --git a/manifests/role/puppet_compiler.pp b/manifests/role/puppet_compiler.pp index cc9231b..b8bd496 100644 --- a/manifests/role/puppet_compiler.pp +++ b/manifests/role/puppet_compiler.pp @@ -13,7 +13,6 @@ srange => '\$INTERNAL' } } - 'production': { require role::ci::slave } default : { fail("Realm ${::realm} NOT supported by this role.") } } @@ -23,4 +22,42 @@ user => 'jenkins-deploy', } + file { '/mnt/puppet-compiler-output': + ensure => directory, + owner => 'jenkins-deploy', + group => 'jenkins-deploy', + require => $::role::ci::slave::labs::common::slash_mnt_require + } + + mount { "${::puppet_compiler::program_dir}/output": + ensure => mounted, + options => "bind", + device => '/mnt/puppet-compiler-output' + } + + file { '/mnt/puppet-compiler-external': + ensure => directory, + owner => 'jenkins-deploy', + group => 'jenkins-deploy', + require => $::role::ci::slave::labs::common::slash_mnt_require + } + + mount { "${::puppet_compiler::program_dir}/external/change": + ensure => mounted, + options => "bind", + device => '/mnt/puppet-compiler-external' + } + + cron { 'check_compiler_stale_repositories': + command => '/usr/bin/find /mnt/puppet-compiler-external -mindepth 1 -maxdepth 1 -ctime +1 -type d | /usr/bin/xargs rm -rf', + user => 'jenkins-deploy', + weekday => 0, + } + + cron { 'check_compiler_stale_output': + command => '/usr/bin/find /mnt/puppet-compiler-output -mindepth 1 -maxdepth 1 -ctime +10 -type d | /usr/bin/xargs rm -rf', + user => 'jenkins-deploy', + weekday => 0, + } + } -- To view, visit https://gerrit.wikimedia.org/r/158612 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iee31f83e958a856c46c7318cefa70781d8a5d2bb Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits