- name: start nfs-server
service:
- name: nfs-server
+ name: "{{ nfs_service }}"
state: started
tags:
- vars
-# configure pip to use our mirror
-- include: pip.yml
-
- name: Set a high max open files limit for the teuthology user.
template:
src: security_limits.conf
name: firewalld
state: stopped
+- name: Set mode on /etc/fuse.conf
+ file:
+ path: /etc/fuse.conf
+ mode: 0644
+
- name: Get hostname.
command: hostname
register: existing_hostname
---
- name: Including major version specific variables.
include_vars: "rhel_{{ ansible_distribution_major_version }}.yml"
+ tags:
+ - vars
- name: Including version specific variables.
- include_vars: "rhel_{{ ansible_distribution_version }}.yml"
+ include_vars: "{{ item }}"
+ with_first_found:
+ - "rhel_{{ ansible_distribution_version }}.yml"
+ - empty.yml
tags:
- vars
owner: root
mode: 0644
-- name: Set mode on /etc/fuse.conf
- file:
- path: /etc/fuse.conf
- mode: 0644
-
- name: Add the teuthology user to group kvm
user:
name: "{{ teuthology_user }}"
+# {{ ansible_managed }}
# $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
-# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
Protocol 2
SyslogFacility AUTHPRIV
--- /dev/null
+---
+# This is empty on purpose. Used as the last line
+# when using include_vars with with_first_found when
+# the var file might not exist.
+#
+# For example, there is not rhel 6.5 var file because it's not needed
+# but there is a rhel 7.0 var file that we need to include. Using this empty.yml
+# as the last line in with_first_found allows include_vars to work across different distros
+# where the var file might not be needed.
+#
+# Maybe related issue:
+# https://github.com/ansible/ansible/issues/10000
common_yum_repos:
epel:
- name: "{{ yum_repo_prefix }} Extra Packages for Enterprise Linux 6 - $basearch"
+ name: "Extra Packages for Enterprise Linux 6 - $basearch"
baseurl: http://apt-mirror.front.sepia.ceph.com/epel6/
enabled: 1
gpgcheck: 0
rhel6:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux Server $releasever - $basearch"
+ name: "My Red Hat Enterprise Linux Server $releasever - $basearch"
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel6repo-server/
enabled: 1
gpgcheck: 0
rhel6-server-optional:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux Optional $releasever - $basearch"
- baseurl: http://apt-mirror.front.sepia.ceph.com/rhel6repo-server-optional
+ name: "My Red Hat Enterprise Linux Optional $releasever - $basearch"
+ baseurl: http://apt-mirror.front.sepia.ceph.com/rhel6repo-server-optional
enabled: 1
gpgcheck: 0
centos6-qemu-ceph:
- name: "{{ yum_repo_prefix }} Cent OS 6 Local Qemu Repo"
+ name: "Cent OS 6 Local Qemu Repo"
baseurl: http://ceph.com/packages/ceph-extras/rpm/rhel6/x86_64/
enabled: 1
gpgcheck: 0
priority: 2
lab-extras:
- name: "{{ yum_repo_prefix }} lab-extras"
+ name: "lab-extras"
baseurl: http://apt-mirror.front.sepia.ceph.com/lab-extras/rhel6/
enabled: 1
gpgcheck: 0
priority: 2
centos6-fcgi-ceph:
- name: "{{ yum_repo_prefix }} Cent OS 6 Local fastcgi Repo"
+ name: "Cent OS 6 Local fastcgi Repo"
baseurl: http://gitbuilder.ceph.com/mod_fastcgi-rpm-rhel6-x86_64-basic/ref/master/
enabled: 1
gpgcheck: 0
priority: 2
centos6-misc-ceph:
- name: "{{ yum_repo_prefix }} Cent OS 6 Local misc Repo"
+ name: "Cent OS 6 Local misc Repo"
baseurl: http://apt-mirror.front.sepia.ceph.com/misc-rpms/
enabled: 1
gpgcheck: 0
priority: 2
centos6-ceph:
- name: "{{ yum_repo_prefix }} Cent OS 6 Local ceph Repo"
+ name: "Cent OS 6 Local ceph Repo"
baseurl: http://ceph.com/rpm-cuttlefish/rhel6/x86_64/
enabled: 1
gpgcheck: 0
- dbench
- bonnie++
- fuse-sshfs
- - fsstress
+ - fsstress
- iozone
###
# used by the xfstests tasks
- junit4
###
# tgt & open-iscsi
+ # installing these 2 packages makes this playbook
+ # not idempotent on rhel 6.x
+ # see: http://tracker.ceph.com/issues/11216
- scsi-target-utils
- iscsi-initiator-utils
# for disk/etc monitoring
- smartmontools
# for nfs
- nfs-utils
+
+nfs_service: nfs
---
yum_repos:
rhel-7-repo:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux $releasever - $basearch"
+ name: My Red Hat Enterprise Linux $releasever - $basearch
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel7repo/server
enabled: 1
gpgcheck: 0
rhel-7-optional:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux $releasever - $basearch"
+ name: My Red Hat Enterprise Linux $releasever - $basearch
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel7repo/server-optional
enabled: 1
gpgcheck: 0
---
yum_repos:
rhel-7.1-beta-repo:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux $releasever - $basearch"
+ name: My Red Hat Enterprise Linux $releasever - $basearch
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel7.1-beta-repo/server/
enabled: 1
gpgcheck: 0
rhel-7.1-beta-optional:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux $releasever - $basearch"
+ name: My Red Hat Enterprise Linux $releasever - $basearch
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel7.1-beta-repo/server-optional/
enabled: 1
gpgcheck: 0
common_yum_repos:
epel:
- name: "{{ yum_repo_prefix }} Extra Packages for Enterprise Linux 6 - $basearch"
+ name: "Extra Packages for Enterprise Linux 7 - $basearch"
baseurl: http://apt-mirror.front.sepia.ceph.com/epel7/
enabled: 1
gpgcheck: 0
rhel-7-extras:
- name: "{{ yum_repo_prefix }} My Red Hat Enterprise Linux $releasever - $basearch"
+ name: "My Red Hat Enterprise Linux $releasever - $basearch"
baseurl: http://apt-mirror.front.sepia.ceph.com/rhel7repo/extras
enabled: 1
gpgcheck: 0
rhel-7-fcgi-ceph:
- name: "{{ yum_repo_prefix }} RHEL 7 Local fastcgi Repo"
+ name: "RHEL 7 Local fastcgi Repo"
baseurl: http://gitbuilder.ceph.com/mod_fastcgi-rpm-rhel7-x86_64-basic/ref/master/
enabled: 1
gpgcheck: 0
priority: 2
lab-extras:
- name: "{{ yum_repo_prefix }} lab-extras"
+ name: "lab-extras"
baseurl: http://apt-mirror.front.sepia.ceph.com/lab-extras/rhel7/
enabled: 1
gpgcheck: 0
- iscsi-initiator-utils
- smartmontools
- nfs-utils
+
+nfs_service: nfs-server