Remove gem mirroring puppet

It looks like we missed these in cleanups for the old puppet-managed
mirror-update server (I5f82139c981c2716f568b15b118690e943b02d52).
These are unused.

Change-Id: Ia79920a7567d73d311f37d73e10c1396d09ddf93
This commit is contained in:
Ian Wienand 2021-03-29 14:47:45 +11:00
parent 8541605595
commit 32c6ba7c2b
2 changed files with 0 additions and 93 deletions

View File

@ -1,28 +0,0 @@
#!/bin/bash
# Copyright 2016 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
set -e
date --iso-8601=ns
echo "Obtaining gem tokens and running gem mirror."
k5start -t -f /etc/gem.keytab service/gem-mirror -- timeout -k 2m 30m sudo -H -u rubygems bash -c 'gem mirror'
date --iso-8601=ns
echo "Gem mirror completed successfully, running vos release."
k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v mirror.gem
date --iso-8601=ns
echo "Done."

View File

@ -1,65 +0,0 @@
# == Class: openstack_project::gem_mirror
#
class openstack_project::gem_mirror (
$data_directory = '/afs/.openstack.org/mirror/gem',
$parallelism = '10',
$cron_frequency = '*/5',
) {
include ::logrotate
logrotate::file { 'rubygems-mirror':
log => '/var/log/rubygems/mirror.log',
options => [
'compress',
'copytruncate',
'missingok',
'rotate 7',
'daily',
'notifempty',
],
}
group { 'rubygems':
ensure => 'present',
before => User['rubygems'],
}
user { 'rubygems':
ensure => 'present',
comment => 'Service used to run rubygems mirror synchronization',
managehome => true,
require => Package['rubygems-mirror'],
}
file { '/home/rubygems/.gem':
ensure => directory,
owner => 'rubygems',
group => 'rubygems',
mode => '0600',
replace => true,
require => User['rubygems'],
}
file { '/home/rubygems/.gem/.mirrorrc':
ensure => present,
owner => 'rubygems',
group => 'rubygems',
mode => '0600',
content => template('openstack_project/rubygems_mirrorrc.erb'),
replace => true,
require => File['/home/rubygems/.gem'],
}
package { 'rubygems-mirror':
ensure => latest,
provider => gem,
}
file { ['/var/run/rubygems','/var/log/rubygems']:
ensure => directory,
owner => 'rubygems',
group => 'rubygems',
require => User['rubygems'],
}
}