Newer
Older
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yaml"
Chris Hines
committed
- name: copy rpms/debs
copy: dest=/tmp/ src=lustre-install/{{ item }}
Chris Hines
committed
#- name: install rpms
# yum: name="/tmp/{{ item }}"
Chris Hines
committed
# become: true
# with_items: "{{ lustre_pkgs }}"
- name: install rpms
yum: name=/tmp/lustre-client-modules-2.7.65-3.10.0_327.4.4.el7.x86_64_gab38c3a.x86_64.rpm
Chris Hines
committed
become: true
Chris Hines
committed
when: ansible_os_family == "RedHat"
yum: name=/tmp/lustre-client-2.7.65-3.10.0_327.4.4.el7.x86_64_gab38c3a.x86_64.rpm
Chris Hines
committed
become: true
Chris Hines
committed
when: ansible_os_family == "RedHat"
- name: install e2fsprogs
yum:
name: e2fsprogs
state: present
become: true
when: ansible_os_family == "RedHat"
Chris Hines
committed
# instructions to build these debs:
# instructions based on this https://linuxsysadm.wordpress.com/2014/10/10/lustre-2-6-on-debian-wheezy-clients/
Chris Hines
committed
# Instantiate an Ubuntu 14.04 instance
# git clone git://git.hpdd.intel.com/fs/lustre-release.git
# cd lustre-release
# optionally git checkout 0754bc8f2623bea184111af216f7567608db35b6 <- I know this commit works on Ubuntu, but I had a lot of trouble with other branches
# sh autogen.sh
# ./configure --enable-dist --disable-doc --disable-server --disable-dependency-tracking --with-o2ib=/var/lib/dkms/mlnx-ofed-kernel/3.1/build/ <- if you didn't checkout the commit above you may also need to --disable-manpages or similar
# make dist
Chris Hines
committed
# mkdir BUILD
# cd BUILD
# ln -s ../lustre-2.7.62.tar.gz lustre-2.7.62.orig.tar.gz
# tar zxvf ../lustre-2.7.62.tar.gz
# cd lustre-2.7.62
# ./configure --disable-doc --disable-server --disable-dependency-tracking --with-o2ib=/var/lib/dkms/mlnx-ofed-kernel/3.1/build/
# vi debian/changelog (the version number on the first line is incorrect) instead of 2.7.50-1 it should be 2.7.62 .... this may not be true depending on what commit you checked out
Chris Hines
committed
# make debs
#
- name: install linux-patch-lustre_2.7.62-1_all.deb
apt: deb="/tmp/linux-patch-lustre_2.7.62-1_all.deb"
Chris Hines
committed
become: true
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "14"
- name: install lustre-client-modules-3.13.0-83-generic_2.7.62-1_amd64.deb
apt: deb="/tmp/lustre-client-modules-3.13.0-83-generic_2.7.62-1_amd64.deb"
Chris Hines
committed
become: true
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "14"
- name: install lustre-utils_2.7.62-1_amd64.deb
apt: deb="/tmp/lustre-utils_2.7.62-1_amd64.deb"
Chris Hines
committed
become: true
Chris Hines
committed
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "14"
- name: "Mount lustre filesystems"
mount: name="{{ item.mntpt }}" src="{{ item.servers }}"/"{{ item.src }}" state="mounted" fstype="lustre" opts="_netdev,flock"
Chris Hines
committed
become: true
with_items: "{{ mntlist }}"