
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
# EPEL is required for dkms to build the openafs kernel modules
|
|
- name: Preinstall EPEL
|
|
package:
|
|
name:
|
|
- epel-release
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Create cache directory
|
|
file:
|
|
path: /var/cache/openafs
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 0700
|
|
setype: afs_cache_t # important! hard-to-debug failures without
|
|
become: yes
|
|
|
|
# Note there is no official AFS builds for CentOS. This uses a
|
|
# repository built by the project-config-build-openafs-centos job, see
|
|
# https://opendev.org/cgit/openstack/openstack-zuul-jobs/tree/zuul.d/jobs.yaml
|
|
|
|
- name: Add AFS repo
|
|
yum_repository:
|
|
name: openafs
|
|
description: OpenStack AFS repo
|
|
baseurl: '{{ openafs_client_yum_repo_url }}'
|
|
gpgcheck: '{{ openafs_client_yum_repo_gpg_check }}'
|
|
become: yes
|
|
|
|
- name: Install kernel modules
|
|
yum:
|
|
name:
|
|
- kernel-devel
|
|
- dkms
|
|
- gcc
|
|
- dkms-openafs
|
|
enablerepo: epel # dkms
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Install client
|
|
yum:
|
|
name:
|
|
- openafs-krb5
|
|
- openafs-client
|
|
state: present
|
|
become: yes
|