configuring ansible for teuthology

loic

As of July 8th, 2015, teuthology (the Ceph integration test software) switched from using Chef to using Ansible. To keep it working, two files must be created. The /etc/ansible/hosts/group_vars/all.yml file with:

modify_fstab: false

The modify_fstab is necessary for OpenStack provisioned instances but it won’t hurt if it’s always there (the only drawback being that mount options are not persisted in /etc/fstab, but they are set as they should). The /etc/ansible/hosts/mylab file must then be populated with

[testnodes] ovh224000.teuthology ovh224001.teuthology ...

where ovh224000.teuthology etc. are the fqdns of all machines that will be used as teuthology targets. The Ansible playbooks will expect to find all targets under the [testnodes] section. The output of a teuthology job should show that the Ansible playbook is being used with something like:

... teuthology.run_tasks:Running task ansible.cephlab... ... INFO:teuthology.task.ansible.out:PLAY [all] ***** ... TASK: [ansible-managed | Create the sudo group.] ****************************** ...

Prior to roles used by teuthology should not require a secrets repo the following had to be in /etc/ansible/hosts/group_vars/all.yml.

lab_domain: teuthology

ansible_sudo: true ansible_user: ubuntu

add 64.90.32.37 apt-mirror.front.sepia.ceph.com to /etc/hosts

mirror_host: apt-mirror.front.sepia.ceph.com git_mirror_host: git.ceph.com kernel_options: '' lab_name: lab ansible_user_ssh_keys: [] ntp_servers: