Skip to content
Snippets Groups Projects
main.yml 2.73 KiB
Newer Older
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yaml"
  copy: dest=/tmp/ src=lustre-install/{{ item }}
#- name: install rpms
#  yum: name="/tmp/{{ item }}"
#  with_items: "{{ lustre_pkgs }}"

- name: install rpms
Simon Michnowicz's avatar
Simon Michnowicz committed
  yum:  name=/tmp/lustre-client-modules-2.7.65-3.10.0_327.4.4.el7.x86_64_gab38c3a.x86_64.rpm

- name: install rpms
Simon Michnowicz's avatar
Simon Michnowicz committed
  yum:  name=/tmp/lustre-client-2.7.65-3.10.0_327.4.4.el7.x86_64_gab38c3a.x86_64.rpm

- name: install e2fsprogs
  yum:
    name: e2fsprogs
    state: present
  become: true
  when: ansible_os_family == "RedHat"
# instructions based on this https://linuxsysadm.wordpress.com/2014/10/10/lustre-2-6-on-debian-wheezy-clients/
# 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
# 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
Simon Michnowicz's avatar
Simon Michnowicz committed


- name: install  linux-patch-lustre_2.7.62-1_all.deb
  apt: deb="/tmp/linux-patch-lustre_2.7.62-1_all.deb"
Simon Michnowicz's avatar
Simon Michnowicz committed
  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"
Simon Michnowicz's avatar
Simon Michnowicz committed
  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"
  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" 
  with_items: "{{ mntlist }}"