GithubHelp home page GithubHelp logo

asher256 / puppet-lizardfs Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 3.0 212 KB

Puppet module for LizardFS (highly-available and scalable open source distributed file system)

License: Apache License 2.0

Ruby 1.77% Puppet 39.29% Shell 47.55% HTML 11.40%
puppet-lizardfs lizardfs keepalived high-availability dfs distributed-file-system

puppet-lizardfs's Introduction

puppet-lizardfs

Table of Contents

  1. Overview
  2. Example
  3. High-Availability
  4. Requirements
  5. Contribute

Overview

The puppet-lizardfs module lets you use Puppet to install and configure LizardFS automatically.

LizardFS is an open source distributed file system, highly available, scalable and ready to use.

You can configure with puppet-lizardfs:

  • The LizardFS master (ready for High-availability with tools like keepalived or Pacemaker. Check out the explanation below)
  • The LizardFS chunkserver
  • The LizardFS metalogger
  • The LizardFS client and mount points

Puppet dependencies (Puppet modules):

  • stdlib

Example

To configure the LizardFS master:

class {'lizardfs::master':
  ensure              => 'present',
  first_personality   => 'MASTER',
  exports             => ['*    /    rw,maproot=0'],
}

To configure the chunkserver:

host { 'mfsmaster':
  ip => 'x.x.x.x',
}

->
class {'lizardfs::chunkserver':
  ensure => present,
}

To mount a LizardFS mount point:

lizardfs::mount {'/mnt/':
  lizardfs_subfolder => '/',
  lizardfs_master    => 'x.x.x.x',   # the IP / host of the LizardFS Master
}

To configure the metalogger:

# FYI: the host "mfsmaster" need to be set, like the chunkserver example below
class {'lizardfs::metalogger':
  ensure => present,
}

High-Availability

The Puppet module "puppet-lizardfs" is ready for the High-Availability (BETA).

You can try the BETA version of the keepalived class lizardfs::ha::keepalived starting by now. Example:

class {'lizardfs::master':
  ensure              => 'present',
  first_personality   => 'MASTER',
  exports             => ['*    /    rw,maproot=0'],
}

class {'lizardfs::ha::keepalived':
  interface          => "eth0",
  virtual_router_id  => "246",
  auth_pass          => "ThePassword",
  email_enabled      => true,
  email_from         => "[email protected]",
  smtp_server        => "smtp.domain.com",
  email_to           => "[email protected]",
  virtual_ip         => ["10.10.10.2/24 dev eth0 label eth0:mfsmaster"],
  lvs_id             => "LIZARDFS_$${:fqdn}",
}

How the lizardfs::ha::keepalived works? First, let me explain how the "PERSONALITY" is managed by puppet-lizardfs:

  • The first time the 'PERSONALITY' is set in 'mfsmaster.cfg' (with the variable lizardfs::master::first_personality), the variable 'PERSONALITY' is not overwritten by Puppet anymore.
  • The fact that "PERSONALITY" is not overwritten by Puppet gives you the possibility to modify the personality with a tool like keepalived, generate mfsmaster.cfg with the new personality and restart the LizardFS master. Your high-availability scripts can change the personality with this script created by puppet-lizardfs /etc/lizardfs/generate-mfsmaster-cfg.sh

The class lizardfs::ha::keepalived (BETA) will switch the personality from SHADOW to MASTER with the failover script. The failover script.

(The Pacemaker support is coming. Check the ALPHA version in misc/alpha/pacemaker.pp if you want to test it or improve it).

Requirements

  • Operating system: Debian, Ubuntu, CentOS, RedHat

Contribute

This Puppet module is an open project, and community contributions are essential for keeping it great. I can't access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve. I encourage you to contribute. Send me your pull requests on Github!

puppet-lizardfs's People

Contributors

asher256 avatar fchioralia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.