Use CI built RPMs for CentOS7

There is no official RPM packages for AFS on CentOS7 at this point.
Openstack builds some for us with
I53e8267b2a0fc31589dd3a1f3e3f3a86175a2e15; modify the installation to
point to this repo.

I have tested this locally on a devstack-centos7 node against the
built rpm repo [1].  The puppet run took a long-ish ~5 minutes as it
has to build the kernel modules via dkms.  However, after this, I
could access the afs mount [2].

[1] https://tarballs.openstack.org/package-afs-centos7/
[2] http://paste.openstack.org/show/490323/

Change-Id: Ib7bc8892cd0e94cc71df1988c48cf94435216c8f
Depends-On: I53e8267b2a0fc31589dd3a1f3e3f3a86175a2e15
This commit is contained in:
Ian Wienand 2016-03-09 14:59:46 +11:00
parent d381194b93
commit fdd6f641ec
3 changed files with 16 additions and 24 deletions

View File

@ -1,12 +0,0 @@
[openafs]
name=OpenAFS 1.6.11 for RHEL $releasever - $basearch
baseurl=http://dl.openafs.org/dl/openafs/1.6.11/rhel$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-OPENAFS
gpgcheck=1
[openafs-source]
name=OpenAFS 1.6.11 for RHEL $releasever - Source
baseurl=http://dl.openafs.org/dl/openafs/1.6.11/
enabled=0
gpgcheck=0

5
files/openafs.repo Normal file
View File

@ -0,0 +1,5 @@
[openafs]
name=OpenAFS Openstack CI build
baseurl=https://tarballs.openstack.org/package-afs-centos7
enabled=1
gpgcheck=0

View File

@ -25,6 +25,15 @@ class openafs::client (
}
if ($::osfamily == 'RedHat') {
# There is no official release of AFS for RHEL/CentOS7 at this
# stage. We are pointing this to RPMs we have build in a job at
# tarballs.openstack.org, and we only build for 7 ATM
# TODO: fedora
if versioncmp($::operatingsystemmajrelease, '7') != 0 {
fail('We only support Centos7 builds at this time')
}
$openafs_path = '/usr/vice/etc'
if ! defined(Package['kernel-devel']) {
@ -70,20 +79,10 @@ class openafs::client (
],
}
file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-OPENAFS':
file { '/etc/yum.repos.d/openafs.repo':
ensure => present,
replace => true,
source => 'puppet:///modules/openafs/RPM-GPG-KEY-OPENAFS',
before => [
Package['openafs-client'],
Package['openafs-krb5'],
],
}
file { '/etc/yum.repos.d/openafs-rhel.repo':
ensure => present,
replace => true,
source => 'puppet:///modules/openafs/openafs-rhel.repo',
source => 'puppet:///modules/openafs/openafs.repo',
before => [
Package['openafs-client'],
Package['openafs-krb5'],