Lampros - Weird Bricks

Installing MooseFS 2.0.60 on FreeBSD 10.1 using Ansible

03 April, 2015 | Ansible

In a previous post I went through the steps necessary to install MooseFS 1.6.27 on FreeBSD 10.

MooseFS has since then been bumped up to version 2.0.60 but unfortunately the FreeBSD ports are still on 1.6.27. In the future I am planning to look further into ports creation but for now I just manually download, configure and compile MooseFS from source.

To automate the process I used Ansible - this is intended to work in two parts:

1. Bootstrap the master server using a C Shell script - then download Ansible and finish the setup

2. Use Ansible on the master to configure the chunkservers to a working state.

You can look at the playbook here. On the master run:

fetch -q -o - https://github.com/weirdbricks/ansible-moosefs-freebsd/raw/master/ansible-moosefs-master.sh --no-verify-peer | sh

Once done you will get this prompt:

NEXT STEPS:
1. Edit /usr/local/etc/ansible/hosts and add the chunkservers you are planning to use
2. Make sure your SSH key is under /root/.ssh/id_rsa
Start the Chunkserver setup with:
clear && fetch -q https://github.com/weirdbricks/ansible-moosefs-freebsd/raw/master/ansible-moosefs-chunkservers.sh --no-verify-peer && chmod +x ansible-moosefs-chunkservers.sh && ./ansible-moosefs-chunkservers.sh

Just follow the above and then fire the second command - you run this on the master after you have your SSH key and after you have populated your /usr/local/etc/ansible/hosts file.

clear && fetch -q https://github.com/weirdbricks/ansible-moosefs-freebsd/raw/master/ansible-moosefs-chunkservers.sh --no-verify-peer && chmod +x ansible-moosefs-chunkservers.sh && ./ansible-moosefs-chunkservers.sh